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

Side by Side Diff: chrome/test/automation/automation_proxy.h

Issue 7548024: Refactor: Make PyAuto InstallExtension() take a string. Delete dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment per nirnimesh. Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void SignalAppLaunch(const std::string& version_string); 190 void SignalAppLaunch(const std::string& version_string);
191 void SignalInitialLoads(); 191 void SignalInitialLoads();
192 // load_time is how long, in ms, the tab contents took to load. 192 // load_time is how long, in ms, the tab contents took to load.
193 void SignalNewTabUITab(int load_time); 193 void SignalNewTabUITab(int load_time);
194 194
195 // Set whether or not running the save page as... command show prompt the 195 // Set whether or not running the save page as... command show prompt the
196 // user for a download path. Returns true if the message is successfully 196 // user for a download path. Returns true if the message is successfully
197 // sent. 197 // sent.
198 bool SavePackageShouldPromptUser(bool should_prompt) WARN_UNUSED_RESULT; 198 bool SavePackageShouldPromptUser(bool should_prompt) WARN_UNUSED_RESULT;
199 199
200 // Installs the extension crx. If |with_ui| is true an install confirmation 200 // Installs the extension. If |with_ui| is true an install confirmation
201 // and notification UI is shown, otherwise the install is silent. Returns the 201 // and notification UI is shown, otherwise the install is silent. Returns the
202 // ExtensionProxy for the installed extension, or NULL on failure. 202 // ExtensionProxy for the installed extension, or NULL on failure.
203 // Note: Overinstalls and downgrades will return NULL. 203 // Note: Overinstalls and downgrades will return NULL.
204 scoped_refptr<ExtensionProxy> InstallExtension(const FilePath& crx_file, 204 scoped_refptr<ExtensionProxy> InstallExtension(
205 bool with_ui); 205 const std::string& extension_path, bool with_ui);
206 206
207 // Asserts that the next extension test result is true. 207 // Asserts that the next extension test result is true.
208 void EnsureExtensionTestResult(); 208 void EnsureExtensionTestResult();
209 209
210 // Resets to the default theme. Returns true on success. 210 // Resets to the default theme. Returns true on success.
211 bool ResetToDefaultTheme(); 211 bool ResetToDefaultTheme();
212 212
213 // Generic pattern for sending automation requests. 213 // Generic pattern for sending automation requests.
214 bool SendJSONRequest(const std::string& request, 214 bool SendJSONRequest(const std::string& request,
215 int timeout_ms, 215 int timeout_ms,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // Delay to let the browser execute the command. 308 // Delay to let the browser execute the command.
309 base::TimeDelta action_timeout_; 309 base::TimeDelta action_timeout_;
310 310
311 base::PlatformThreadId listener_thread_id_; 311 base::PlatformThreadId listener_thread_id_;
312 312
313 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); 313 DISALLOW_COPY_AND_ASSIGN(AutomationProxy);
314 }; 314 };
315 315
316 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ 316 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698