#include <vector>
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "content/browser/browsing_topics/test_util.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_content_browser_client.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/public/test/url_loader_interceptor.h"
#include "content/shell/browser/shell.h"
#include "content/test/content_browser_test_utils_internal.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/default_handlers.h"
#include "net/test/embedded_test_server/request_handler_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/browsing_topics/browsing_topics.mojom.h"
#include "url/gurl.h"
namespace content {
namespace {
class FixedTopicsContentBrowserClient
: public ContentBrowserTestContentBrowserClient { … };
}
class BrowsingTopicsBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(BrowsingTopicsBrowserTest, TopicsAPI) { … }
IN_PROC_BROWSER_TEST_F(
BrowsingTopicsBrowserTest,
TopicsAPI_InvokedFromFrameWithNonDefaultStoragePartition) { … }
IN_PROC_BROWSER_TEST_F(BrowsingTopicsBrowserTest,
Fetch_TopicsHeaderNotVisibleInServiceWorker) { … }
IN_PROC_BROWSER_TEST_F(BrowsingTopicsBrowserTest, TopicsHeaderForWindowFetch) { … }
IN_PROC_BROWSER_TEST_F(BrowsingTopicsBrowserTest,
TopicsNotAllowedForServiceWorkerFetch) { … }
IN_PROC_BROWSER_TEST_F(BrowsingTopicsBrowserTest,
EmbedderOptInStatus_StaticIframe_NoBrowsingTopicsAttr) { … }
IN_PROC_BROWSER_TEST_F(BrowsingTopicsBrowserTest,
EmbedderOptInStatus_StaticIframe_HasBrowsingTopicsAttr) { … }
IN_PROC_BROWSER_TEST_F(
BrowsingTopicsBrowserTest,
EmbedderOptInStatus_AppendIframeElement_BrowsingTopicsAttrIsFalse) { … }
IN_PROC_BROWSER_TEST_F(
BrowsingTopicsBrowserTest,
EmbedderOptInStatus_AppendIframeElement_BrowsingTopicsAttrIsTrue) { … }
IN_PROC_BROWSER_TEST_F(BrowsingTopicsBrowserTest,
EmbedderOptInStatus_BrowsingTopicsAttrUpdated) { … }
}