| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // sent. | 196 // sent. |
| 197 bool SavePackageShouldPromptUser(bool should_prompt) WARN_UNUSED_RESULT; | 197 bool SavePackageShouldPromptUser(bool should_prompt) WARN_UNUSED_RESULT; |
| 198 | 198 |
| 199 // Installs the extension. If |with_ui| is true an install confirmation | 199 // Installs the extension. 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& extension_path, | 203 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& extension_path, |
| 204 bool with_ui); | 204 bool with_ui); |
| 205 | 205 |
| 206 // Asserts that the next extension test result is true. | 206 // Gets the next extension test result in |result|. Returns false if there |
| 207 void EnsureExtensionTestResult(); | 207 // was a problem sending the result querying RPC. |
| 208 bool GetExtensionTestResult(bool* result, std::string* message); |
| 208 | 209 |
| 209 // Resets to the default theme. Returns true on success. | 210 // Resets to the default theme. Returns true on success. |
| 210 bool ResetToDefaultTheme(); | 211 bool ResetToDefaultTheme(); |
| 211 | 212 |
| 212 // Generic pattern for sending automation requests. | 213 // Generic pattern for sending automation requests. |
| 213 bool SendJSONRequest(const std::string& request, | 214 bool SendJSONRequest(const std::string& request, |
| 214 int timeout_ms, | 215 int timeout_ms, |
| 215 std::string* response) WARN_UNUSED_RESULT; | 216 std::string* response) WARN_UNUSED_RESULT; |
| 216 | 217 |
| 217 #if defined(OS_CHROMEOS) | 218 #if defined(OS_CHROMEOS) |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 319 |
| 319 // Delay to let the browser execute the command. | 320 // Delay to let the browser execute the command. |
| 320 base::TimeDelta action_timeout_; | 321 base::TimeDelta action_timeout_; |
| 321 | 322 |
| 322 base::PlatformThreadId listener_thread_id_; | 323 base::PlatformThreadId listener_thread_id_; |
| 323 | 324 |
| 324 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); | 325 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); |
| 325 }; | 326 }; |
| 326 | 327 |
| 327 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ | 328 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
| OLD | NEW |