#include "extensions/browser/offscreen_document_host.h"
#include "extensions/common/mojom/context_type.mojom.h"
#include "base/test/bind.h"
#include "base/test/values_test_util.h"
#include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/devtools/devtools_window_testing.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "extensions/browser/background_script_executor.h"
#include "extensions/browser/extension_host_registry.h"
#include "extensions/browser/process_manager.h"
#include "extensions/browser/process_map.h"
#include "extensions/browser/script_result_queue.h"
#include "extensions/browser/view_type_utils.h"
#include "extensions/common/constants.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/permissions/permissions_data.h"
#include "extensions/test/test_extension_dir.h"
#include "net/dns/mock_host_resolver.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace extensions {
class OffscreenDocumentBrowserTest : public ExtensionApiTest { … };
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest,
CreateBasicOffscreenDocument) { … }
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest, APIAccessIsLimited) { … }
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest, MessagingTest) { … }
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest,
CrossOriginFetchPermissions) { … }
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest,
ContentScriptsInNestedIframes) { … }
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest,
AttachingDevToolsInspector) { … }
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest, NavigationIsDisallowed) { … }
IN_PROC_BROWSER_TEST_F(OffscreenDocumentBrowserTest, CallWindowClose) { … }
}