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

// Copyright 2019 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_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 {};

}  // namespace

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

TEST_F(SiteDataCacheImplTest, EndToEnd) {}

TEST_F(SiteDataCacheImplTest, ClearSiteDataForOrigins) {}

TEST_F(SiteDataCacheImplTest, ClearAllSiteData) {}

TEST_F(SiteDataCacheImplTest, InspectorWorks) {}

// TODO(crbug.com/40056631): Turn this into a death test to verify that
//     the data cache asserts that no readers outlive the cache.
TEST_F(SiteDataCacheImplTest, NoUAFWhenReaderHeldAfterTeardown) {}

}  // namespace performance_manager