Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1890)

Unified Diff: chrome/browser/extensions/webstore_installer_test.h

Issue 339103002: Update the EphemeralAppLauncher for use by the webstorePrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/webstore_installer_test.h
diff --git a/chrome/browser/extensions/webstore_installer_test.h b/chrome/browser/extensions/webstore_installer_test.h
index bb9b5b59461f84e5b64e50135097945e7f974063..f6d9af36307b5b325cd410c4388553d8d905c003 100644
--- a/chrome/browser/extensions/webstore_installer_test.h
+++ b/chrome/browser/extensions/webstore_installer_test.h
@@ -8,14 +8,14 @@
#include <string>
#include "base/files/scoped_temp_dir.h"
-#include "chrome/test/base/in_process_browser_test.h"
+#include "chrome/browser/extensions/extension_browsertest.h"
#include "url/gurl.h"
namespace base {
class CommandLine;
} // namespace base
-class WebstoreInstallerTest : public InProcessBrowserTest {
+class WebstoreInstallerTest : public ExtensionBrowserTest {
public:
WebstoreInstallerTest(const std::string& webstore_domain,
const std::string& test_data_path,
@@ -45,6 +45,14 @@ class WebstoreInstallerTest : public InProcessBrowserTest {
// Runs a test without waiting for any results from the renderer.
void RunTestAsync(const std::string& test_function_name);
+ // Configures command line switches to simulate a user accepting the install
+ // prompt.
+ void AutoAcceptInstall();
+
+ // Configures command line switches to simulate a user cancelling the install
+ // prompt.
+ void AutoCancelInstall();
+
std::string webstore_domain_;
std::string test_data_path_;
std::string crx_filename_;
« no previous file with comments | « chrome/browser/extensions/webstore_install_result.h ('k') | chrome/browser/extensions/webstore_installer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698