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 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.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/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_system.h" | 22 #include "extensions/browser/extension_system.h" |
23 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
24 #include "extensions/common/feature_switch.h" | 24 #include "extensions/common/feature_switch.h" |
25 #include "extensions/common/features/feature_channel.h" | 25 #include "extensions/common/features/feature_channel.h" |
26 #include "extensions/common/manifest.h" | 26 #include "extensions/common/manifest.h" |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 #if defined(OS_CHROMEOS) | 319 #if defined(OS_CHROMEOS) |
320 // True if the command line should be tweaked as if ChromeOS user is | 320 // True if the command line should be tweaked as if ChromeOS user is |
321 // already logged in. | 321 // already logged in. |
322 bool set_chromeos_user_; | 322 bool set_chromeos_user_; |
323 #endif | 323 #endif |
324 | 324 |
325 // test_data/extensions. | 325 // test_data/extensions. |
326 base::FilePath test_data_dir_; | 326 base::FilePath test_data_dir_; |
327 | 327 |
328 std::unique_ptr<ExtensionTestNotificationObserver> observer_; | 328 std::unique_ptr<ChromeExtensionTestNotificationObserver> observer_; |
329 | 329 |
330 private: | 330 private: |
331 // Temporary directory for testing. | 331 // Temporary directory for testing. |
332 base::ScopedTempDir temp_dir_; | 332 base::ScopedTempDir temp_dir_; |
333 | 333 |
334 // Specifies the type of UI (if any) to show during installation and what | 334 // Specifies the type of UI (if any) to show during installation and what |
335 // user action to simulate. | 335 // user action to simulate. |
336 enum InstallUIType { | 336 enum InstallUIType { |
337 INSTALL_UI_TYPE_NONE, | 337 INSTALL_UI_TYPE_NONE, |
338 INSTALL_UI_TYPE_CANCEL, | 338 INSTALL_UI_TYPE_CANCEL, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 #endif | 386 #endif |
387 | 387 |
388 // The default profile to be used. | 388 // The default profile to be used. |
389 Profile* profile_; | 389 Profile* profile_; |
390 | 390 |
391 // Cache cache implementation. | 391 // Cache cache implementation. |
392 std::unique_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 392 std::unique_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
393 }; | 393 }; |
394 | 394 |
395 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 395 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |