#include "chrome/browser/extensions/webstore_installer.h"
#include <memory>
#include <utility>
#include "base/run_loop.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/permissions/scripting_permissions_modifier.h"
#include "chrome/browser/extensions/webstore_installer_test.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/permissions_manager.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/extension_features.h"
namespace extensions {
namespace {
const char kWebstoreDomain[] = …;
const char kAppDomain[] = …;
const char kNonAppDomain[] = …;
const char kTestExtensionId[] = …;
const char kTestExtensionWithPermissionsId[] = …;
const char kTestDataPath[] = …;
const char kCrxFilename[] = …;
const char kCrxWithPermissionsFilename[] = …;
}
class TestWebstoreInstaller : public WebstoreInstaller { … };
class WebstoreInstallerBrowserTest : public WebstoreInstallerTest { … };
class WebstoreInstallerMV2BrowserTest : public WebstoreInstallerBrowserTest { … };
IN_PROC_BROWSER_TEST_F(WebstoreInstallerMV2BrowserTest, WebstoreInstall) { … }
IN_PROC_BROWSER_TEST_F(WebstoreInstallerMV2BrowserTest, SimultaneousInstall) { … }
class WebstoreInstallerWithWithholdingUIBrowserTest
: public WebstoreInstallerBrowserTest,
public testing::WithParamInterface<bool> { … };
IN_PROC_BROWSER_TEST_P(WebstoreInstallerWithWithholdingUIBrowserTest,
WithholdingHostsOnInstall) { … }
INSTANTIATE_TEST_SUITE_P(…);
}