OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 bool WaitForPageActionVisibilityChangeTo(int count) { | 234 bool WaitForPageActionVisibilityChangeTo(int count) { |
235 return observer_->WaitForPageActionVisibilityChangeTo(count); | 235 return observer_->WaitForPageActionVisibilityChangeTo(count); |
236 } | 236 } |
237 | 237 |
238 // Wait for an extension install error to be raised. Returns true if an | 238 // Wait for an extension install error to be raised. Returns true if an |
239 // error was raised. | 239 // error was raised. |
240 bool WaitForExtensionInstallError() { | 240 bool WaitForExtensionInstallError() { |
241 return observer_->WaitForExtensionInstallError(); | 241 return observer_->WaitForExtensionInstallError(); |
242 } | 242 } |
243 | 243 |
244 // Waits until an extension is loaded and all view have loaded. | |
245 void WaitForExtensionAndViewLoad() { | |
246 return observer_->WaitForExtensionAndViewLoad(); | |
247 } | |
248 | |
249 // Waits until an extension is loaded. | |
250 void WaitForExtensionLoad() { | |
251 return observer_->WaitForExtensionLoad(); | |
252 } | |
253 | |
254 // Waits for an extension load error. Returns true if the error really | 244 // Waits for an extension load error. Returns true if the error really |
255 // happened. | 245 // happened. |
256 bool WaitForExtensionLoadError() { | 246 bool WaitForExtensionLoadError() { |
257 return observer_->WaitForExtensionLoadError(); | 247 return observer_->WaitForExtensionLoadError(); |
258 } | 248 } |
259 | 249 |
260 // Wait for the specified extension to crash. Returns true if it really | 250 // Wait for the specified extension to crash. Returns true if it really |
261 // crashed. | 251 // crashed. |
262 bool WaitForExtensionCrash(const std::string& extension_id) { | 252 bool WaitForExtensionCrash(const std::string& extension_id) { |
263 return observer_->WaitForExtensionCrash(extension_id); | 253 return observer_->WaitForExtensionCrash(extension_id); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 std::unique_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 385 std::unique_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
396 | 386 |
397 // An override so that chrome-extensions://<extension_id>/_test_resources/foo | 387 // An override so that chrome-extensions://<extension_id>/_test_resources/foo |
398 // maps to chrome/test/data/extensions/foo. | 388 // maps to chrome/test/data/extensions/foo. |
399 extensions::ExtensionProtocolTestHandler test_protocol_handler_; | 389 extensions::ExtensionProtocolTestHandler test_protocol_handler_; |
400 | 390 |
401 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserTest); | 391 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserTest); |
402 }; | 392 }; |
403 | 393 |
404 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 394 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |