diff options
Diffstat (limited to 'chrome/test/automation')
-rw-r--r-- | chrome/test/automation/automation_messages_internal.h | 4 | ||||
-rw-r--r-- | chrome/test/automation/automation_proxy.cc | 6 | ||||
-rw-r--r-- | chrome/test/automation/automation_proxy.h | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h index 8dcf03a..495905e 100644 --- a/chrome/test/automation/automation_messages_internal.h +++ b/chrome/test/automation/automation_messages_internal.h @@ -1161,6 +1161,10 @@ IPC_BEGIN_MESSAGES(Automation) FilePath /* root directory of extension */, AutomationMsg_ExtensionResponseValues) + // Retrieves a list of the root directories of all enabled extensions. + IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetEnabledExtensions, + std::vector<FilePath>) + // This message requests the type of the window with the given handle. The // return value contains the type (Browser::Type), or -1 if the request // failed. diff --git a/chrome/test/automation/automation_proxy.cc b/chrome/test/automation/automation_proxy.cc index d03bc4d..d383443 100644 --- a/chrome/test/automation/automation_proxy.cc +++ b/chrome/test/automation/automation_proxy.cc @@ -237,6 +237,12 @@ bool AutomationProxy::InstallExtension(const FilePath& crx_file) { return response == AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED; } +bool AutomationProxy::GetEnabledExtensions( + std::vector<FilePath>* extension_directories) { + return Send(new AutomationMsg_GetEnabledExtensions( + 0, extension_directories)); +} + bool AutomationProxy::GetBrowserWindowCount(int* num_windows) { if (!num_windows) { NOTREACHED(); diff --git a/chrome/test/automation/automation_proxy.h b/chrome/test/automation/automation_proxy.h index c1f1e46..281de66 100644 --- a/chrome/test/automation/automation_proxy.h +++ b/chrome/test/automation/automation_proxy.h @@ -186,6 +186,10 @@ class AutomationProxy : public IPC::Channel::Listener, // Note: Overinstalls will fail. bool InstallExtension(const FilePath& crx_file); + // Gets a list of all enabled extensions' base directories. + // Returns true on success. + bool GetEnabledExtensions(std::vector<FilePath>* extension_directories); + #if defined(OS_CHROMEOS) // Logs in through the Chrome OS login wizard with given |username| // and |password|. Returns true on success. |