chromium/components/performance_manager/persistence/site_data/site_data_impl_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/performance_manager/persistence/site_data/site_data_impl.h"

#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/test/bind.h"
#include "components/performance_manager/test_support/persistence/unittest_utils.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace performance_manager {
namespace internal {

namespace {

class TestSiteDataImpl : public SiteDataImpl {};

class MockDataStore : public testing::NoopSiteDataStore {};

// Returns a SiteDataFeatureProto that indicates that a feature hasn't been
// used.
SiteDataFeatureProto GetUnusedFeatureProto() {}

// Returns a SiteDataFeatureProto that indicates that a feature has been used.
SiteDataFeatureProto GetUsedFeatureProto() {}

}  // namespace

class SiteDataImplTest : public ::testing::Test {};

TEST_F(SiteDataImplTest, BasicTestEndToEnd) {}

TEST_F(SiteDataImplTest, LastLoadedTime) {}

TEST_F(SiteDataImplTest, GetFeatureUsageForUnloadedSite) {}

TEST_F(SiteDataImplTest, AllDurationGetSavedOnUnload) {}

// Verify that the OnDestroyDelegate gets notified when a
// SiteDataImpl object gets destroyed.
TEST_F(SiteDataImplTest, DestroyNotifiesDelegate) {}

TEST_F(SiteDataImplTest, OnInitCallbackMergePreviousObservations) {}

TEST_F(SiteDataImplTest, LateAsyncReadDoesntEraseData) {}

TEST_F(SiteDataImplTest, LateAsyncReadDoesntBypassClearEvent) {}

TEST_F(SiteDataImplTest, BackgroundedCountTests) {}

TEST_F(SiteDataImplTest, OptionalFieldsNotPopulatedWhenClean) {}

TEST_F(SiteDataImplTest, FlushingStateToProtoDoesntAffectData) {}

TEST_F(SiteDataImplTest, DataLoadedCallbackInvoked) {}

}  // namespace internal
}  // namespace performance_manager