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

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

Issue 196663003: Introduce an extension parameter which is used to customize the extension. It's available for exter… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified test parameters Created 6 years, 9 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/extension_browsertest.h
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index a9bf4baa2f25b10d6d301cfae448ae90edb9bfe7..d8f19e99a53ef50bd7172ca0eaa5724be05496b8 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -80,13 +80,22 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest {
const extensions::Extension* LoadExtension(const base::FilePath& path);
- // Same as above, but enables the extension in incognito mode first.
+ // Load extension and enable it in incognito mode.
const extensions::Extension* LoadExtensionIncognito(
const base::FilePath& path);
+ // Load extension from the |path| folder. |flags| is bit mask of values from
+ // |Flags| enum.
const extensions::Extension* LoadExtensionWithFlags(
const base::FilePath& path, int flags);
+ // Same as above, but sets the installation parameter to the extension
+ // preferences.
+ const extensions::Extension* LoadExtensionWithInstallParam(
+ const base::FilePath& path,
+ int flags,
+ const std::string& install_param);
+
// Loads unpacked extension from |path| with manifest |manifest_relative_path|
// and imitates that it is a component extension.
// |manifest_relative_path| is relative to |path|.
« no previous file with comments | « chrome/browser/extensions/chrome_app_sorting_unittest.cc ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698