| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 true); | 221 true); |
| 222 } | 222 } |
| 223 | 223 |
| 224 // Begins install process but simulates a user cancel. | 224 // Begins install process but simulates a user cancel. |
| 225 const extensions::Extension* StartInstallButCancel( | 225 const extensions::Extension* StartInstallButCancel( |
| 226 const base::FilePath& path) { | 226 const base::FilePath& path) { |
| 227 return InstallOrUpdateExtension( | 227 return InstallOrUpdateExtension( |
| 228 std::string(), path, INSTALL_UI_TYPE_CANCEL, 0); | 228 std::string(), path, INSTALL_UI_TYPE_CANCEL, 0); |
| 229 } | 229 } |
| 230 | 230 |
| 231 void ReloadExtension(const std::string extension_id); | 231 void ReloadExtension(const std::string& extension_id); |
| 232 | 232 |
| 233 void UnloadExtension(const std::string& extension_id); | 233 void UnloadExtension(const std::string& extension_id); |
| 234 | 234 |
| 235 void UninstallExtension(const std::string& extension_id); | 235 void UninstallExtension(const std::string& extension_id); |
| 236 | 236 |
| 237 void DisableExtension(const std::string& extension_id); | 237 void DisableExtension(const std::string& extension_id); |
| 238 | 238 |
| 239 void EnableExtension(const std::string& extension_id); | 239 void EnableExtension(const std::string& extension_id); |
| 240 | 240 |
| 241 // Wait for the number of visible page actions to change to |count|. | 241 // Wait for the number of visible page actions to change to |count|. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 #endif | 401 #endif |
| 402 | 402 |
| 403 // The default profile to be used. | 403 // The default profile to be used. |
| 404 Profile* profile_; | 404 Profile* profile_; |
| 405 | 405 |
| 406 // Cache cache implementation. | 406 // Cache cache implementation. |
| 407 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 407 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
| 408 }; | 408 }; |
| 409 | 409 |
| 410 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 410 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |