| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 14 matching lines...) Expand all Loading... |
| 25 // |expected_change| indicates how many extensions should be installed (or | 25 // |expected_change| indicates how many extensions should be installed (or |
| 26 // disabled, if negative). | 26 // disabled, if negative). |
| 27 // 1 means you expect a new install, 0 means you expect an upgrade, -1 means | 27 // 1 means you expect a new install, 0 means you expect an upgrade, -1 means |
| 28 // you expect a failed upgrade. | 28 // you expect a failed upgrade. |
| 29 bool InstallExtension(const FilePath& path, int expected_change); | 29 bool InstallExtension(const FilePath& path, int expected_change); |
| 30 void UninstallExtension(const std::string& extension_id); | 30 void UninstallExtension(const std::string& extension_id); |
| 31 | 31 |
| 32 // Wait for the number of visible page actions to change to |count|. | 32 // Wait for the number of visible page actions to change to |count|. |
| 33 bool WaitForPageActionVisibilityChangeTo(int count); | 33 bool WaitForPageActionVisibilityChangeTo(int count); |
| 34 | 34 |
| 35 // NotificationObserver |
| 36 virtual void Observe(NotificationType type, |
| 37 const NotificationSource& source, |
| 38 const NotificationDetails& details); |
| 39 |
| 35 bool loaded_; | 40 bool loaded_; |
| 36 bool installed_; | 41 bool installed_; |
| 37 FilePath test_data_dir_; | 42 FilePath test_data_dir_; |
| 38 | 43 |
| 39 private: | 44 private: |
| 40 virtual void Observe(NotificationType type, | |
| 41 const NotificationSource& source, | |
| 42 const NotificationDetails& details); | |
| 43 bool WaitForExtensionHostsToLoad(); | 45 bool WaitForExtensionHostsToLoad(); |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 48 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |