#include "extensions/browser/extension_navigation_throttle.h"
#include <memory>
#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/crx_file/id_util.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/common/content_client.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
NavigationThrottle;
namespace extensions {
namespace {
const char kAccessible[] = …;
const char kPrivate[] = …;
const char kAccessibleDir[] = …;
const char kAccessibleDirResource[] = …;
class MockBrowserClient : public content::ContentBrowserClient { … };
}
class ExtensionNavigationThrottleUnitTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(ExtensionNavigationThrottleUnitTest, ExternalWebPage) { … }
TEST_F(ExtensionNavigationThrottleUnitTest, CrossSiteFileSystemUrl) { … }
TEST_F(ExtensionNavigationThrottleUnitTest, SameExtension) { … }
TEST_F(ExtensionNavigationThrottleUnitTest, DisabledExtensionChildFrame) { … }
TEST_F(ExtensionNavigationThrottleUnitTest, DisabledExtensionMainFrame) { … }
}