#include "base/memory/raw_ptr.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/common/content_client.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_mock_cert_verifier.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/shell/browser/shell.h"
#include "net/base/net_errors.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace content {
namespace {
static constexpr WebExposedIsolationLevel kNotIsolated = …;
static constexpr WebExposedIsolationLevel kIsolatedApplication = …;
const char kAppHost[] = …;
const char kNonAppHost[] = …;
class IsolatedWebAppContentBrowserClient
: public ContentBrowserTestContentBrowserClient { … };
}
class HttpsBrowserTest : public ContentBrowserTest { … };
class IsolatedWebAppThrottleBrowserTest : public HttpsBrowserTest { … };
IN_PROC_BROWSER_TEST_F(IsolatedWebAppThrottleBrowserTest,
BlockMainFrameNavigationIntoApp) { … }
IN_PROC_BROWSER_TEST_F(IsolatedWebAppThrottleBrowserTest,
CancelCrossOriginNavigationInApp) { … }
IN_PROC_BROWSER_TEST_F(IsolatedWebAppThrottleBrowserTest,
IframeInitiatedIframeNavigationIntoAppBlocked) { … }
IN_PROC_BROWSER_TEST_F(IsolatedWebAppThrottleBrowserTest,
AppInitiatedIframeNavigationIntoAppAllowed) { … }
}