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

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

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge ConstrainedWebDialog functions Created 4 years 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
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_
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void SetRulesetService( 142 void SetRulesetService(
143 std::unique_ptr<subresource_filter::RulesetService> ruleset_service); 143 std::unique_ptr<subresource_filter::RulesetService> ruleset_service);
144 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); 144 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter);
145 void SetNotificationUIManager( 145 void SetNotificationUIManager(
146 std::unique_ptr<NotificationUIManager> notification_ui_manager); 146 std::unique_ptr<NotificationUIManager> notification_ui_manager);
147 void SetNotificationPlatformBridge( 147 void SetNotificationPlatformBridge(
148 std::unique_ptr<NotificationPlatformBridge> notification_platform_bridge); 148 std::unique_ptr<NotificationPlatformBridge> notification_platform_bridge);
149 void SetRapporService(rappor::RapporService* rappor_service); 149 void SetRapporService(rappor::RapporService* rappor_service);
150 void SetShuttingDown(bool is_shutting_down); 150 void SetShuttingDown(bool is_shutting_down);
151 void ShutdownBrowserPolicyConnector(); 151 void ShutdownBrowserPolicyConnector();
152 void SetPrintPreviewDialogController(
153 printing::PrintPreviewDialogController* controller);
152 154
153 private: 155 private:
154 // See CreateInstance() and DestoryInstance() above. 156 // See CreateInstance() and DestoryInstance() above.
155 TestingBrowserProcess(); 157 TestingBrowserProcess();
156 ~TestingBrowserProcess() override; 158 ~TestingBrowserProcess() override;
157 159
158 std::unique_ptr<content::NotificationService> notification_service_; 160 std::unique_ptr<content::NotificationService> notification_service_;
159 std::string app_locale_; 161 std::string app_locale_;
160 bool is_shutting_down_; 162 bool is_shutting_down_;
161 163
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 class TestingBrowserProcessInitializer { 225 class TestingBrowserProcessInitializer {
224 public: 226 public:
225 TestingBrowserProcessInitializer(); 227 TestingBrowserProcessInitializer();
226 ~TestingBrowserProcessInitializer(); 228 ~TestingBrowserProcessInitializer();
227 229
228 private: 230 private:
229 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); 231 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer);
230 }; 232 };
231 233
232 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 234 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui_unittest.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698