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

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

Issue 6221005: Print Preview: Store preview data in the print preview controller.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_
11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_
12 #pragma once 12 #pragma once
13 13
14 #include "build/build_config.h"
15
16 #include <string> 14 #include <string>
17 15
18 #include "base/string_util.h" 16 #include "base/string_util.h"
19 #include "base/synchronization/waitable_event.h" 17 #include "base/synchronization/waitable_event.h"
18 #include "build/build_config.h"
20 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/google/google_url_tracker.h" 20 #include "chrome/browser/google/google_url_tracker.h"
22 #include "chrome/browser/policy/configuration_policy_pref_store.h" 21 #include "chrome/browser/policy/configuration_policy_pref_store.h"
23 #include "chrome/browser/policy/configuration_policy_provider.h" 22 #include "chrome/browser/policy/configuration_policy_provider.h"
24 #include "chrome/browser/policy/configuration_policy_provider_keeper.h" 23 #include "chrome/browser/policy/configuration_policy_provider_keeper.h"
25 #include "chrome/browser/policy/dummy_configuration_policy_provider.h" 24 #include "chrome/browser/policy/dummy_configuration_policy_provider.h"
26 #include "chrome/browser/prefs/pref_service.h" 25 #include "chrome/browser/prefs/pref_service.h"
27 #include "chrome/common/notification_service.h" 26 #include "chrome/common/notification_service.h"
28 #include "ui/base/clipboard/clipboard.h" 27 #include "ui/base/clipboard/clipboard.h"
29 28
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 160 }
162 161
163 virtual bool IsShuttingDown() { 162 virtual bool IsShuttingDown() {
164 return false; 163 return false;
165 } 164 }
166 165
167 virtual printing::PrintJobManager* print_job_manager() { 166 virtual printing::PrintJobManager* print_job_manager() {
168 return NULL; 167 return NULL;
169 } 168 }
170 169
171 virtual printing::PrintPreviewTabController* print_preview_tab_controller() { 170 virtual printing::PrintPreviewManager* print_preview_manager() {
172 return NULL; 171 return NULL;
173 } 172 }
174 173
175 virtual const std::string& GetApplicationLocale() { 174 virtual const std::string& GetApplicationLocale() {
176 return app_locale_; 175 return app_locale_;
177 } 176 }
178 177
179 virtual void SetApplicationLocale(const std::string& app_locale) { 178 virtual void SetApplicationLocale(const std::string& app_locale) {
180 app_locale_ = app_locale; 179 app_locale_ = app_locale;
181 } 180 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 PrefService* pref_service_; 215 PrefService* pref_service_;
217 bool created_configuration_policy_provider_keeper_; 216 bool created_configuration_policy_provider_keeper_;
218 scoped_ptr<policy::ConfigurationPolicyProviderKeeper> 217 scoped_ptr<policy::ConfigurationPolicyProviderKeeper>
219 configuration_policy_provider_keeper_; 218 configuration_policy_provider_keeper_;
220 scoped_ptr<GoogleURLTracker> google_url_tracker_; 219 scoped_ptr<GoogleURLTracker> google_url_tracker_;
221 220
222 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 221 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
223 }; 222 };
224 223
225 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 224 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698