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

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

Issue 18119009: Make utility process run in-process when running in single-process mode. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add comment Created 7 years, 5 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"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 void InitializeExtensionProcessManager(); 54 void InitializeExtensionProcessManager();
55 55
56 void InitializeExtensionServiceWithUpdater(); 56 void InitializeExtensionServiceWithUpdater();
57 57
58 void InitializeRequestContext(); 58 void InitializeRequestContext();
59 59
60 static void SetUpTestCase(); 60 static void SetUpTestCase();
61 61
62 virtual void SetUp() OVERRIDE; 62 virtual void SetUp() OVERRIDE;
63 virtual void TearDown() OVERRIDE;
63 64
64 void set_extensions_enabled(bool enabled) { 65 void set_extensions_enabled(bool enabled) {
65 service_->set_extensions_enabled(enabled); 66 service_->set_extensions_enabled(enabled);
66 } 67 }
67 68
68 protected: 69 protected:
69 void InitializeExtensionServiceHelper(bool autoupdate_enabled, 70 void InitializeExtensionServiceHelper(bool autoupdate_enabled,
70 bool is_first_run); 71 bool is_first_run);
71 72
72 base::MessageLoop loop_; 73 base::MessageLoop loop_;
73 base::ShadowingAtExitManager at_exit_manager_; 74 scoped_ptr<base::ShadowingAtExitManager> at_exit_manager_;
74 base::ScopedTempDir temp_dir_; 75 base::ScopedTempDir temp_dir_;
75 scoped_ptr<TestingProfile> profile_; 76 scoped_ptr<TestingProfile> profile_;
76 base::FilePath extensions_install_dir_; 77 base::FilePath extensions_install_dir_;
77 base::FilePath data_dir_; 78 base::FilePath data_dir_;
78 // Managed by extensions::ExtensionSystemFactory. 79 // Managed by extensions::ExtensionSystemFactory.
79 ExtensionService* service_; 80 ExtensionService* service_;
80 extensions::ManagementPolicy* management_policy_; 81 extensions::ManagementPolicy* management_policy_;
81 size_t expected_extensions_count_; 82 size_t expected_extensions_count_;
82 content::TestBrowserThread ui_thread_; 83 content::TestBrowserThread ui_thread_;
83 content::TestBrowserThread db_thread_; 84 content::TestBrowserThread db_thread_;
84 content::TestBrowserThread webkit_thread_; 85 content::TestBrowserThread webkit_thread_;
85 content::TestBrowserThread file_thread_; 86 content::TestBrowserThread file_thread_;
86 content::TestBrowserThread file_user_blocking_thread_; 87 content::TestBrowserThread file_user_blocking_thread_;
87 content::TestBrowserThread io_thread_; 88 content::TestBrowserThread io_thread_;
88 89
89 #if defined OS_CHROMEOS 90 #if defined OS_CHROMEOS
90 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; 91 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_;
91 chromeos::ScopedTestCrosSettings test_cros_settings_; 92 chromeos::ScopedTestCrosSettings test_cros_settings_;
92 chromeos::ScopedTestUserManager test_user_manager_; 93 chromeos::ScopedTestUserManager test_user_manager_;
93 #endif 94 #endif
94 }; 95 };
95 96
96 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ 97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698