#include "components/browsing_topics/browsing_topics_page_load_data_tracker.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "components/browsing_topics/test_util.h"
#include "components/history/content/browser/history_context_helper.h"
#include "components/history/core/browser/history_database_params.h"
#include "components/history/core/browser/history_service.h"
#include "components/history/core/test/test_history_database.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/test/back_forward_cache_util.h"
#include "content/public/test/browsing_topics_test_util.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_utils.h"
#include "content/public/test/web_contents_tester.h"
#include "content/test/test_render_view_host.h"
#include "services/metrics/public/cpp/metrics_utils.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "third_party/blink/public/common/permissions_policy/origin_with_possible_wildcards.h"
namespace browsing_topics {
class BrowsingTopicsPageLoadDataTrackerTest
: public content::RenderViewHostTestHarness { … };
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, IniializeWithRedirectStatus) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, OneUsage) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, OneUsage_DoesNotObserve) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, TwoUsages) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, OneUsage_PageLoadUkm) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, OneThousandUsages_PageLoadUkm) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, TwoThousandUsages_PageLoadUkm) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, DuplicateDomains) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, NumberOfDomainsExceedsLimit) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, NotPubliclyRoutable) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest,
BrowsingTopicsPermissionsPolicyNotAllowed) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest,
InterestCohortPermissionsPolicyNotAllowed) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest,
RendererInitiatedWithUserGesture) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest, RendererInitiatedNoUserGesture) { … }
TEST_F(BrowsingTopicsPageLoadDataTrackerTest,
RendererInitiatedPlusExtraSamePageNav) { … }
}