#include "base/functional/callback.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/test_safe_browsing_navigation_observer_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/sessions/content/session_tab_helper.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/dns/mock_host_resolver.h"
namespace safe_browsing {
const char kLandingURL[] = …;
const char kCopyReferrerUrl[] = …;
const char kCopyReferrerInnerUrl[] = …;
class SBNavigationObserverBrowserTest : public InProcessBrowserTest { … };
#if BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64)
#define MAYBE_VerifyCopiedUrlReferrerChain …
#else
#define MAYBE_VerifyCopiedUrlReferrerChain …
#endif
IN_PROC_BROWSER_TEST_F(SBNavigationObserverBrowserTest,
MAYBE_VerifyCopiedUrlReferrerChain) { … }
IN_PROC_BROWSER_TEST_F(SBNavigationObserverBrowserTest,
VerifyIdentifyReferrerChainByEventURL) { … }
#if BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64)
#define MAYBE_VerifyCopiedInnerUrlReferrerChain …
#else
#define MAYBE_VerifyCopiedInnerUrlReferrerChain …
#endif
IN_PROC_BROWSER_TEST_F(SBNavigationObserverBrowserTest,
MAYBE_VerifyCopiedInnerUrlReferrerChain) { … }
}