#include "chrome/browser/performance_manager/persistence/site_data/site_data_cache_facade.h"
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/scoped_observation.h"
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/performance_manager/persistence/site_data/site_data_cache_facade_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_observer.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/performance_manager/persistence/site_data/site_data_cache.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/persistence/site_data/site_data_writer.h"
#include "components/performance_manager/public/decorators/site_data_recorder.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/graph/page_node.h"
#include "components/performance_manager/public/persistence/site_data/feature_usage.h"
#include "components/performance_manager/public/persistence/site_data/site_data_reader.h"
#include "components/performance_manager/test_support/run_in_graph.h"
#include "content/public/browser/visibility.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/window_open_disposition.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace performance_manager {
std::ostream& operator<<(std::ostream& os, SiteFeatureUsage feature_usage) { … }
namespace {
static constexpr char kSiteA[] = …;
class ClearSiteDataOnProfileDestroyed final : public ProfileObserver { … };
class TestSiteDataRecorderHeuristics final : public SiteDataRecorderHeuristics { … };
struct PMThreadingConfiguration { … };
class SiteDataCacheFacadeBrowserTest
: public InProcessBrowserTest,
public ::testing::WithParamInterface<bool> { … };
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_P(SiteDataCacheFacadeBrowserTest,
DISABLED_PRE_PRE_ClearAllSiteData) { … }
IN_PROC_BROWSER_TEST_P(SiteDataCacheFacadeBrowserTest,
DISABLED_PRE_ClearAllSiteData) { … }
IN_PROC_BROWSER_TEST_P(SiteDataCacheFacadeBrowserTest,
DISABLED_ClearAllSiteData) { … }
}
}