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

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

Issue 5543001: Tests for incognito app install, plus some cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add app permissions file Created 10 years 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/extension_browsertest.h
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index 9b7f5f00efdee22ff6e6cd10bbc62e295770ca26..5324196bf3ec2b2cf6deef6b07a14759d87c88da 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -52,6 +52,12 @@ class ExtensionBrowserTest
return InstallOrUpdateExtension("", path, INSTALL_UI_TYPE_NORMAL,
expected_change);
}
+ bool InstallExtensionWithUIAutoConfirm(const FilePath& path,
+ int expected_change,
+ Profile* profile) {
+ return InstallOrUpdateExtension("", path, INSTALL_UI_TYPE_AUTO_CONFIRM,
+ expected_change, profile);
+ }
// Begins install process but simulates a user cancel.
bool StartInstallButCancel(const FilePath& path) {
@@ -109,11 +115,16 @@ class ExtensionBrowserTest
INSTALL_UI_TYPE_NONE,
INSTALL_UI_TYPE_CANCEL,
INSTALL_UI_TYPE_NORMAL,
+ INSTALL_UI_TYPE_AUTO_CONFIRM,
};
bool InstallOrUpdateExtension(const std::string& id, const FilePath& path,
InstallUIType ui_type,
int expected_change);
+ bool InstallOrUpdateExtension(const std::string& id, const FilePath& path,
+ InstallUIType ui_type,
+ int expected_change,
+ Profile* profile);
bool LoadExtensionImpl(const FilePath& path, bool incognito_enabled);
bool WaitForExtensionHostsToLoad();
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browsertest.cc » ('j') | chrome/browser/extensions/extension_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698