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

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

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 // 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 107 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
108 108
109 // Set the local state for tests. Consumer is responsible for cleaning it up 109 // Set the local state for tests. Consumer is responsible for cleaning it up
110 // afterwards (using ScopedTestingLocalState, for example). 110 // afterwards (using ScopedTestingLocalState, for example).
111 void SetLocalState(PrefService* local_state); 111 void SetLocalState(PrefService* local_state);
112 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); 112 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker);
113 void SetProfileManager(ProfileManager* profile_manager); 113 void SetProfileManager(ProfileManager* profile_manager);
114 void SetIOThread(IOThread* io_thread); 114 void SetIOThread(IOThread* io_thread);
115 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); 115 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector);
116 void SetSafeBrowsingService(SafeBrowsingService* sb_service); 116 void SetSafeBrowsingService(SafeBrowsingService* sb_service);
117 void SetMetricsService(MetricsService* service);
117 118
118 private: 119 private:
119 scoped_ptr<content::NotificationService> notification_service_; 120 scoped_ptr<content::NotificationService> notification_service_;
120 unsigned int module_ref_count_; 121 unsigned int module_ref_count_;
121 scoped_ptr<ui::Clipboard> clipboard_; 122 scoped_ptr<ui::Clipboard> clipboard_;
122 std::string app_locale_; 123 std::string app_locale_;
123 124
124 // Weak pointer. 125 // Weak pointer.
125 PrefService* local_state_; 126 PrefService* local_state_;
126 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 127 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
127 scoped_ptr<policy::PolicyService> policy_service_; 128 scoped_ptr<policy::PolicyService> policy_service_;
128 scoped_ptr<GoogleURLTracker> google_url_tracker_; 129 scoped_ptr<GoogleURLTracker> google_url_tracker_;
129 scoped_ptr<ProfileManager> profile_manager_; 130 scoped_ptr<ProfileManager> profile_manager_;
130 scoped_ptr<NotificationUIManager> notification_ui_manager_; 131 scoped_ptr<NotificationUIManager> notification_ui_manager_;
131 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 132 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
132 scoped_refptr<printing::PrintPreviewTabController> 133 scoped_refptr<printing::PrintPreviewTabController>
133 print_preview_tab_controller_; 134 print_preview_tab_controller_;
134 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 135 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
135 IOThread* io_thread_; 136 IOThread* io_thread_;
136 scoped_refptr<SafeBrowsingService> sb_service_; 137 scoped_refptr<SafeBrowsingService> sb_service_;
138 scoped_ptr<MetricsService> metrics_service_;
137 139
138 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 140 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
139 }; 141 };
140 142
141 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 143 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698