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

Side by Side Diff: chrome/test/base/testing_browser_process.h

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 years, 1 month 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // An implementation of BrowserProcess for unit tests that fails for most 5 // An implementation of BrowserProcess for unit tests that fails for most
6 // services. By preventing creation of services, we reduce dependencies and 6 // services. By preventing creation of services, we reduce dependencies and
7 // keep the profile clean. Clients of this class must handle the NULL return 7 // keep the profile clean. Clients of this class must handle the NULL return
8 // value, however. 8 // value, however.
9 9
10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
12 12
13 #include <stdint.h> 13 #include <stdint.h>
14 14
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 17
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "build/build_config.h" 20 #include "build/build_config.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/browser_process_platform_part.h" 22 #include "chrome/browser/browser_process_platform_part.h"
23 #include "printing/features/features.h"
23 24
24 class BackgroundModeManager; 25 class BackgroundModeManager;
25 class CRLSetFetcher; 26 class CRLSetFetcher;
26 class IOThread; 27 class IOThread;
27 class MHTMLGenerationManager; 28 class MHTMLGenerationManager;
28 class NotificationPlatformBridge; 29 class NotificationPlatformBridge;
29 class NotificationUIManager; 30 class NotificationUIManager;
30 class PrefService; 31 class PrefService;
31 class WatchDogThread; 32 class WatchDogThread;
32 33
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 std::unique_ptr<content::NotificationService> notification_service_; 157 std::unique_ptr<content::NotificationService> notification_service_;
157 std::string app_locale_; 158 std::string app_locale_;
158 bool is_shutting_down_; 159 bool is_shutting_down_;
159 160
160 std::unique_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 161 std::unique_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
161 bool created_browser_policy_connector_ = false; 162 bool created_browser_policy_connector_ = false;
162 std::unique_ptr<ProfileManager> profile_manager_; 163 std::unique_ptr<ProfileManager> profile_manager_;
163 std::unique_ptr<NotificationUIManager> notification_ui_manager_; 164 std::unique_ptr<NotificationUIManager> notification_ui_manager_;
164 std::unique_ptr<NotificationPlatformBridge> notification_platform_bridge_; 165 std::unique_ptr<NotificationPlatformBridge> notification_platform_bridge_;
165 166
166 #if defined(ENABLE_PRINTING) 167 #if BUILDFLAG(ENABLE_PRINTING)
167 std::unique_ptr<printing::PrintJobManager> print_job_manager_; 168 std::unique_ptr<printing::PrintJobManager> print_job_manager_;
168 #endif 169 #endif
169 170
170 #if defined(ENABLE_PRINT_PREVIEW) 171 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
171 std::unique_ptr<printing::BackgroundPrintingManager> 172 std::unique_ptr<printing::BackgroundPrintingManager>
172 background_printing_manager_; 173 background_printing_manager_;
173 scoped_refptr<printing::PrintPreviewDialogController> 174 scoped_refptr<printing::PrintPreviewDialogController>
174 print_preview_dialog_controller_; 175 print_preview_dialog_controller_;
175 #endif 176 #endif
176 177
177 scoped_refptr<safe_browsing::SafeBrowsingService> sb_service_; 178 scoped_refptr<safe_browsing::SafeBrowsingService> sb_service_;
178 std::unique_ptr<subresource_filter::RulesetService> 179 std::unique_ptr<subresource_filter::RulesetService>
179 subresource_filter_ruleset_service_; 180 subresource_filter_ruleset_service_;
180 181
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 class TestingBrowserProcessInitializer { 222 class TestingBrowserProcessInitializer {
222 public: 223 public:
223 TestingBrowserProcessInitializer(); 224 TestingBrowserProcessInitializer();
224 ~TestingBrowserProcessInitializer(); 225 ~TestingBrowserProcessInitializer();
225 226
226 private: 227 private:
227 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); 228 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer);
228 }; 229 };
229 230
230 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 231 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698