| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // error was raised. | 91 // error was raised. |
| 92 bool WaitForExtensionInstallError(); | 92 bool WaitForExtensionInstallError(); |
| 93 | 93 |
| 94 // Waits until an extension is loaded. | 94 // Waits until an extension is loaded. |
| 95 void WaitForExtensionLoad(); | 95 void WaitForExtensionLoad(); |
| 96 | 96 |
| 97 // Wait for the specified extension to crash. Returns true if it really | 97 // Wait for the specified extension to crash. Returns true if it really |
| 98 // crashed. | 98 // crashed. |
| 99 bool WaitForExtensionCrash(const std::string& extension_id); | 99 bool WaitForExtensionCrash(const std::string& extension_id); |
| 100 | 100 |
| 101 // Checks that a theme info bar is currently visible and issues an undo to |
| 102 // revert to the previous theme. |
| 103 void VerifyThemeInfoBarAndUndoInstall(); |
| 104 |
| 101 // NotificationObserver | 105 // NotificationObserver |
| 102 virtual void Observe(NotificationType type, | 106 virtual void Observe(NotificationType type, |
| 103 const NotificationSource& source, | 107 const NotificationSource& source, |
| 104 const NotificationDetails& details); | 108 const NotificationDetails& details); |
| 105 | 109 |
| 106 bool loaded_; | 110 bool loaded_; |
| 107 bool installed_; | 111 bool installed_; |
| 108 | 112 |
| 109 // test_data/extensions. | 113 // test_data/extensions. |
| 110 FilePath test_data_dir_; | 114 FilePath test_data_dir_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 135 // When waiting for page action count to change, we wait until it reaches this | 139 // When waiting for page action count to change, we wait until it reaches this |
| 136 // value. | 140 // value. |
| 137 int target_page_action_count_; | 141 int target_page_action_count_; |
| 138 | 142 |
| 139 // When waiting for visible page action count to change, we wait until it | 143 // When waiting for visible page action count to change, we wait until it |
| 140 // reaches this value. | 144 // reaches this value. |
| 141 int target_visible_page_action_count_; | 145 int target_visible_page_action_count_; |
| 142 }; | 146 }; |
| 143 | 147 |
| 144 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 148 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |