#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 { … };
SiteDataFeatureProto GetUnusedFeatureProto() { … }
SiteDataFeatureProto GetUsedFeatureProto() { … }
}
class SiteDataImplTest : public ::testing::Test { … };
TEST_F(SiteDataImplTest, BasicTestEndToEnd) { … }
TEST_F(SiteDataImplTest, LastLoadedTime) { … }
TEST_F(SiteDataImplTest, GetFeatureUsageForUnloadedSite) { … }
TEST_F(SiteDataImplTest, AllDurationGetSavedOnUnload) { … }
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) { … }
}
}