OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // Installs the extension crx. If |with_ui| is true an install confirmation | 199 // Installs the extension crx. If |with_ui| is true an install confirmation |
200 // and notification UI is shown, otherwise the install is silent. Returns the | 200 // and notification UI is shown, otherwise the install is silent. Returns the |
201 // ExtensionProxy for the installed extension, or NULL on failure. | 201 // ExtensionProxy for the installed extension, or NULL on failure. |
202 // Note: Overinstalls and downgrades will return NULL. | 202 // Note: Overinstalls and downgrades will return NULL. |
203 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& crx_file, | 203 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& crx_file, |
204 bool with_ui); | 204 bool with_ui); |
205 | 205 |
206 // Asserts that the next extension test result is true. | 206 // Asserts that the next extension test result is true. |
207 void EnsureExtensionTestResult(); | 207 void EnsureExtensionTestResult(); |
208 | 208 |
209 // Gets a list of all enabled extensions' base directories. | |
210 // Returns true on success. | |
211 bool GetEnabledExtensions(std::vector<FilePath>* extension_directories); | |
212 | |
213 // Resets to the default theme. Returns true on success. | 209 // Resets to the default theme. Returns true on success. |
214 bool ResetToDefaultTheme(); | 210 bool ResetToDefaultTheme(); |
215 | 211 |
216 // Generic pattern for sending automation requests. | 212 // Generic pattern for sending automation requests. |
217 bool SendJSONRequest(const std::string& request, | 213 bool SendJSONRequest(const std::string& request, |
218 std::string* response) WARN_UNUSED_RESULT; | 214 std::string* response) WARN_UNUSED_RESULT; |
219 | 215 |
220 #if defined(OS_CHROMEOS) | 216 #if defined(OS_CHROMEOS) |
221 // Logs in through the Chrome OS login wizard with given |username| | 217 // Logs in through the Chrome OS login wizard with given |username| |
222 // and |password|. Returns true on success. | 218 // and |password|. Returns true on success. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 304 |
309 // Delay to let the browser execute the command. | 305 // Delay to let the browser execute the command. |
310 base::TimeDelta command_execution_timeout_; | 306 base::TimeDelta command_execution_timeout_; |
311 | 307 |
312 base::PlatformThreadId listener_thread_id_; | 308 base::PlatformThreadId listener_thread_id_; |
313 | 309 |
314 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); | 310 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); |
315 }; | 311 }; |
316 | 312 |
317 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ | 313 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
OLD | NEW |