#include "content/browser/renderer_host/policy_container_host.h"
#include "base/command_line.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/content_navigation_policy.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_navigation_observer.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/embedded_test_server.h"
#include "services/network/public/mojom/referrer_policy.mojom-shared.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
ByRef;
Eq;
Pointee;
namespace {
class PolicyContainerHostBrowserTest : public content::ContentBrowserTest { … };
}
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
ReferrerPolicyFromHeader) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
ReferrerPolicyMetaUpdates) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest, CopiedFromPopupOpener) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest, CopiedFromParent) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
CopiedFromParentCreatedBySibling) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest, HistoryForMainFrame) { … }
namespace {
bool EqualsExceptCOOPAndTopNavigation(const PolicyContainerPolicies& lhs,
const PolicyContainerPolicies& rhs) { … }
}
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest, HistoryForChildFrame) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
HistoryForInitialEmptyDocument) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
BlinkModificationsDoNotAffectPolicyContainer) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
PoliciesNotInheritedForRemoteNonLocalScheme) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
CheckRendererPolicyContainerAccessesAfterCrash) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest, FailedNavigation) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
ContentSecurityPoliciesFromHeader) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
ContentSecurityPolicyFromMeta) { … }
IN_PROC_BROWSER_TEST_F(PolicyContainerHostBrowserTest,
PolicyContainerOnClonedDocumentNoCrash) { … }
}