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

Unified Diff: chrome/test/webdriver/webdriver_automation.h

Issue 8649004: Allow chromedriver to install an extension and get all installed extension IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 1 month 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/test/webdriver/webdriver_automation.h
diff --git a/chrome/test/webdriver/webdriver_automation.h b/chrome/test/webdriver/webdriver_automation.h
index d437a05ec38a2736d9aac02b5cd36a17c781037b..03300e9631fe11a302179909d1f42928b0d017fa 100644
--- a/chrome/test/webdriver/webdriver_automation.h
+++ b/chrome/test/webdriver/webdriver_automation.h
@@ -162,7 +162,16 @@ class Automation {
void WaitForAllTabsToStopLoading(Error** error);
// Install packed extension.
- void InstallExtension(const FilePath& path, Error** error);
+ void InstallExtensionDeprecated(const FilePath& path, Error** error);
+
+ // Gets all installed extension IDs.
+ void GetInstalledExtensions(std::vector<std::string>* extension_ids,
+ Error** error);
+
+ // Install a packed or unpacked extension. If the path ends with '.crx',
+ // the extension is assumed to be packed.
+ void InstallExtension(const FilePath& path, std::string* extension_id,
+ Error** error);
private:
AutomationProxy* automation() const;
@@ -175,6 +184,7 @@ class Automation {
const std::string& error_msg);
Error* CheckAlertsSupported();
Error* CheckAdvancedInteractionsSupported();
+ Error* CheckNewExtensionInterfaceSupported();
scoped_ptr<ProxyLauncher> launcher_;

Powered by Google App Engine
This is Rietveld 408576698