#include <memory>
#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/memory/raw_ptr.h"
#include "base/values.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/chrome_test_extension_loader.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/extensions/permissions/active_tab_permission_granter.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/sessions/content/session_tab_helper.h"
#include "components/version_info/version_info.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/web_contents_tester.h"
#include "extensions/browser/disable_reason.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_util.h"
#include "extensions/browser/test_extension_registry_observer.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/extensions_client.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_channel.h"
#include "extensions/common/permissions/permissions_data.h"
#include "extensions/test/test_extension_dir.h"
APIPermissionID;
namespace extensions {
namespace {
scoped_refptr<const Extension> CreateTestExtension(
const std::string& name,
bool has_active_tab_permission,
bool has_tab_capture_permission) { … }
enum PermittedFeature { … };
class ActiveTabTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(ActiveTabTest, GrantToSinglePage) { … }
TEST_F(ActiveTabTest, CapturingPagesWithActiveTab) { … }
TEST_F(ActiveTabTest, Unloading) { … }
TEST_F(ActiveTabTest, OnlyActiveTab) { … }
TEST_F(ActiveTabTest, SameDocumentNavigations) { … }
TEST_F(ActiveTabTest, ChromeUrlGrants) { … }
TEST_F(ActiveTabTest, ClearActiveExtensionAndNotify) { … }
TEST_F(ActiveTabTest, ClearAllActiveExtensionsAndNotify) { … }
class ActiveTabWithServiceTest : public ExtensionServiceTestBase { … };
void ActiveTabWithServiceTest::SetUp() { … }
TEST_F(ActiveTabWithServiceTest, FileURLs) { … }
}
}