| 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 20 matching lines...) Expand all Loading... |
| 31 return InstallOrUpdateExtension("", path, expected_change); | 31 return InstallOrUpdateExtension("", path, expected_change); |
| 32 } | 32 } |
| 33 | 33 |
| 34 // Same as above but calls ExtensionsService::UpdateExtension instead of | 34 // Same as above but calls ExtensionsService::UpdateExtension instead of |
| 35 // InstallExtension(). | 35 // InstallExtension(). |
| 36 bool UpdateExtension(const std::string& id, const FilePath& path, | 36 bool UpdateExtension(const std::string& id, const FilePath& path, |
| 37 int expected_change) { | 37 int expected_change) { |
| 38 return InstallOrUpdateExtension(id, path, expected_change); | 38 return InstallOrUpdateExtension(id, path, expected_change); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void ReloadExtension(const std::string& extension_id); |
| 42 |
| 41 void UnloadExtension(const std::string& extension_id); | 43 void UnloadExtension(const std::string& extension_id); |
| 42 | 44 |
| 43 void UninstallExtension(const std::string& extension_id); | 45 void UninstallExtension(const std::string& extension_id); |
| 44 | 46 |
| 45 // Wait for the total number of page actions to change to |count|. | 47 // Wait for the total number of page actions to change to |count|. |
| 46 bool WaitForPageActionCountChangeTo(int count); | 48 bool WaitForPageActionCountChangeTo(int count); |
| 47 | 49 |
| 48 // Wait for the number of visible page actions to change to |count|. | 50 // Wait for the number of visible page actions to change to |count|. |
| 49 bool WaitForPageActionVisibilityChangeTo(int count); | 51 bool WaitForPageActionVisibilityChangeTo(int count); |
| 50 | 52 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 68 int extension_installs_observed_; | 70 int extension_installs_observed_; |
| 69 | 71 |
| 70 private: | 72 private: |
| 71 bool InstallOrUpdateExtension(const std::string& id, const FilePath& path, | 73 bool InstallOrUpdateExtension(const std::string& id, const FilePath& path, |
| 72 int expected_change); | 74 int expected_change); |
| 73 | 75 |
| 74 bool WaitForExtensionHostsToLoad(); | 76 bool WaitForExtensionHostsToLoad(); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 79 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |