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

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

Issue 9703115: Add DeviceSettingProvider unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed documentation. Created 8 years, 9 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 #include "chrome/test/base/testing_browser_process.h" 5 #include "chrome/test/base/testing_browser_process.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/google/google_url_tracker.h" 8 #include "chrome/browser/google/google_url_tracker.h"
9 #include "chrome/browser/metrics/metrics_service.h"
9 #include "chrome/browser/notifications/notification_ui_manager.h" 10 #include "chrome/browser/notifications/notification_ui_manager.h"
10 #include "chrome/browser/policy/browser_policy_connector.h" 11 #include "chrome/browser/policy/browser_policy_connector.h"
11 #include "chrome/browser/policy/policy_service_stub.h" 12 #include "chrome/browser/policy/policy_service_stub.h"
12 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/prerender/prerender_tracker.h" 14 #include "chrome/browser/prerender/prerender_tracker.h"
14 #include "chrome/browser/printing/background_printing_manager.h" 15 #include "chrome/browser/printing/background_printing_manager.h"
15 #include "chrome/browser/printing/print_preview_tab_controller.h" 16 #include "chrome/browser/printing/print_preview_tab_controller.h"
16 #include "chrome/browser/profiles/profile_manager.h" 17 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 18 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
18 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
(...skipping 13 matching lines...) Expand all
32 EXPECT_FALSE(local_state_); 33 EXPECT_FALSE(local_state_);
33 } 34 }
34 35
35 void TestingBrowserProcess::ResourceDispatcherHostCreated() { 36 void TestingBrowserProcess::ResourceDispatcherHostCreated() {
36 } 37 }
37 38
38 void TestingBrowserProcess::EndSession() { 39 void TestingBrowserProcess::EndSession() {
39 } 40 }
40 41
41 MetricsService* TestingBrowserProcess::metrics_service() { 42 MetricsService* TestingBrowserProcess::metrics_service() {
42 return NULL; 43 return metrics_service_.get();
43 } 44 }
44 45
45 IOThread* TestingBrowserProcess::io_thread() { 46 IOThread* TestingBrowserProcess::io_thread() {
46 return io_thread_; 47 return io_thread_;
47 } 48 }
48 49
49 WatchDogThread* TestingBrowserProcess::watchdog_thread() { 50 WatchDogThread* TestingBrowserProcess::watchdog_thread() {
50 return NULL; 51 return NULL;
51 } 52 }
52 53
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 264
264 void TestingBrowserProcess::SetBrowserPolicyConnector( 265 void TestingBrowserProcess::SetBrowserPolicyConnector(
265 policy::BrowserPolicyConnector* connector) { 266 policy::BrowserPolicyConnector* connector) {
266 browser_policy_connector_.reset(connector); 267 browser_policy_connector_.reset(connector);
267 } 268 }
268 269
269 void TestingBrowserProcess::SetSafeBrowsingService( 270 void TestingBrowserProcess::SetSafeBrowsingService(
270 SafeBrowsingService* sb_service) { 271 SafeBrowsingService* sb_service) {
271 sb_service_ = sb_service; 272 sb_service_ = sb_service;
272 } 273 }
274
275 void TestingBrowserProcess::SetMetricsService(MetricsService* service) {
276 metrics_service_.reset(service);
277 }
OLDNEW
« chrome/browser/metrics/metrics_service.h ('K') | « chrome/test/base/testing_browser_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698