| 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" |
| 11 | |
| 12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/macros.h" |
| 14 #include "base/test/scoped_path_override.h" | 14 #include "base/test/scoped_path_override.h" |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "chrome/browser/extensions/chrome_extension_test_notification_observer.
h" | 16 #include "chrome/browser/extensions/chrome_extension_test_notification_observer.
h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
| 20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 21 #include "extensions/browser/extension_host.h" | 21 #include "extensions/browser/extension_host.h" |
| 22 #include "extensions/browser/extension_protocols.h" |
| 22 #include "extensions/browser/extension_system.h" | 23 #include "extensions/browser/extension_system.h" |
| 23 #include "extensions/common/extension.h" | 24 #include "extensions/common/extension.h" |
| 24 #include "extensions/common/feature_switch.h" | 25 #include "extensions/common/feature_switch.h" |
| 25 #include "extensions/common/features/feature_channel.h" | 26 #include "extensions/common/features/feature_channel.h" |
| 26 #include "extensions/common/manifest.h" | 27 #include "extensions/common/manifest.h" |
| 27 | 28 |
| 28 class ExtensionService; | 29 class ExtensionService; |
| 29 class Profile; | 30 class Profile; |
| 30 | 31 |
| 31 namespace extensions { | 32 namespace extensions { |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 base::ScopedPathOverride user_quick_launch_override_; | 385 base::ScopedPathOverride user_quick_launch_override_; |
| 385 base::ScopedPathOverride start_menu_override_; | 386 base::ScopedPathOverride start_menu_override_; |
| 386 base::ScopedPathOverride common_start_menu_override_; | 387 base::ScopedPathOverride common_start_menu_override_; |
| 387 #endif | 388 #endif |
| 388 | 389 |
| 389 // The default profile to be used. | 390 // The default profile to be used. |
| 390 Profile* profile_; | 391 Profile* profile_; |
| 391 | 392 |
| 392 // Cache cache implementation. | 393 // Cache cache implementation. |
| 393 std::unique_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 394 std::unique_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
| 395 |
| 396 // An override so that chrome-extensions://<extension_id>/_test_resources/foo |
| 397 // maps to chrome/test/data/extensions/foo. |
| 398 extensions::ExtensionProtocolTestHandler test_protocol_handler_; |
| 399 |
| 400 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserTest); |
| 394 }; | 401 }; |
| 395 | 402 |
| 396 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 403 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |