#include "components/performance_manager/persistence/site_data/site_data_cache_impl.h"
#include <set>
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "components/performance_manager/persistence/site_data/site_data_cache_factory.h"
#include "components/performance_manager/persistence/site_data/site_data_cache_inspector.h"
#include "components/performance_manager/persistence/site_data/site_data_impl.h"
#include "components/performance_manager/test_support/persistence/unittest_utils.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace performance_manager {
namespace {
constexpr base::TimeDelta kDelay = …;
class MockSiteCache : public testing::NoopSiteDataStore { … };
}
class SiteDataCacheImplTest : public ::testing::Test { … };
TEST_F(SiteDataCacheImplTest, EndToEnd) { … }
TEST_F(SiteDataCacheImplTest, ClearSiteDataForOrigins) { … }
TEST_F(SiteDataCacheImplTest, ClearAllSiteData) { … }
TEST_F(SiteDataCacheImplTest, InspectorWorks) { … }
TEST_F(SiteDataCacheImplTest, NoUAFWhenReaderHeldAfterTeardown) { … }
}