#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/browser/devtools/render_frame_devtools_agent_host.h"
#include <string_view>
#include "build/build_config.h"
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/content_navigation_policy.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/devtools_agent_host_client.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/result_codes.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_base.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/fenced_frame_test_util.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/shell/browser/shell.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/controllable_http_response.h"
namespace content {
class RenderFrameDevToolsAgentHostBrowserTest : public ContentBrowserTest { … };
namespace {
const char kFencedFramePath[] = …;
class StubDevToolsAgentHostClient : public content::DevToolsAgentHostClient { … };
}
#define MAYBE_CancelCrossOriginNavigationAfterReadyToCommit …
IN_PROC_BROWSER_TEST_F(RenderFrameDevToolsAgentHostBrowserTest,
MAYBE_CancelCrossOriginNavigationAfterReadyToCommit) { … }
IN_PROC_BROWSER_TEST_F(RenderFrameDevToolsAgentHostBrowserTest,
ReloadDinoPage) { … }
IN_PROC_BROWSER_TEST_F(RenderFrameDevToolsAgentHostBrowserTest,
CheckDebuggerAttachedToTabTarget) { … }
class RenderFrameDevToolsAgentHostFencedFrameBrowserTest
: public RenderFrameDevToolsAgentHostBrowserTest { … };
IN_PROC_BROWSER_TEST_F(RenderFrameDevToolsAgentHostFencedFrameBrowserTest,
CallNavigationRequestCallbackViaOuterDocument) { … }
IN_PROC_BROWSER_TEST_F(RenderFrameDevToolsAgentHostFencedFrameBrowserTest,
PageCrashInFencedFrame) { … }
}