Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: chrome/browser/extensions/extension_service_unittest.h

Issue 14694010: Consolidate manifest handler registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_SERVICE_UNITTEST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/common/extensions/extension_unittest.h"
16 #include "chrome/common/extensions/feature_switch.h" 15 #include "chrome/common/extensions/feature_switch.h"
17 #include "content/public/test/test_browser_thread.h" 16 #include "content/public/test/test_browser_thread.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 18
20 #if defined(OS_CHROMEOS) 19 #if defined(OS_CHROMEOS)
21 #include "chrome/browser/chromeos/login/user_manager.h" 20 #include "chrome/browser/chromeos/login/user_manager.h"
22 #include "chrome/browser/chromeos/settings/cros_settings.h" 21 #include "chrome/browser/chromeos/settings/cros_settings.h"
23 #include "chrome/browser/chromeos/settings/device_settings_service.h" 22 #include "chrome/browser/chromeos/settings/device_settings_service.h"
24 #endif 23 #endif
25 24
26 class TestingProfile; 25 class TestingProfile;
27 26
28 namespace extensions { 27 namespace extensions {
29 class ManagementPolicy; 28 class ManagementPolicy;
30 } 29 }
31 30
32 class ExtensionServiceTestBase : public extensions::ExtensionTest { 31 class ExtensionServiceTestBase : public testing::Test {
33 public: 32 public:
34 struct ExtensionServiceInitParams { 33 struct ExtensionServiceInitParams {
35 base::FilePath profile_path; 34 base::FilePath profile_path;
36 base::FilePath pref_file; 35 base::FilePath pref_file;
37 base::FilePath extensions_install_dir; 36 base::FilePath extensions_install_dir;
38 bool autoupdate_enabled; 37 bool autoupdate_enabled;
39 bool is_first_run; 38 bool is_first_run;
40 39
41 ExtensionServiceInitParams(); 40 ExtensionServiceInitParams();
42 }; 41 };
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 content::TestBrowserThread io_thread_; 87 content::TestBrowserThread io_thread_;
89 88
90 #if defined OS_CHROMEOS 89 #if defined OS_CHROMEOS
91 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; 90 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_;
92 chromeos::ScopedTestCrosSettings test_cros_settings_; 91 chromeos::ScopedTestCrosSettings test_cros_settings_;
93 chromeos::ScopedTestUserManager test_user_manager_; 92 chromeos::ScopedTestUserManager test_user_manager_;
94 #endif 93 #endif
95 }; 94 };
96 95
97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ 96 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698