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

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

Issue 2528893003: [PhysicalWeb] Add physical_web namespace. (Closed)
Patch Set: 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 #if BUILDFLAG(ENABLE_WEBRTC) 125 #if BUILDFLAG(ENABLE_WEBRTC)
126 WebRtcLogUploader* webrtc_log_uploader() override; 126 WebRtcLogUploader* webrtc_log_uploader() override;
127 #endif 127 #endif
128 128
129 network_time::NetworkTimeTracker* network_time_tracker() override; 129 network_time::NetworkTimeTracker* network_time_tracker() override;
130 130
131 gcm::GCMDriver* gcm_driver() override; 131 gcm::GCMDriver* gcm_driver() override;
132 memory::TabManager* GetTabManager() override; 132 memory::TabManager* GetTabManager() override;
133 shell_integration::DefaultWebClientState CachedDefaultWebClientState() 133 shell_integration::DefaultWebClientState CachedDefaultWebClientState()
134 override; 134 override;
135 PhysicalWebDataSource* GetPhysicalWebDataSource() override; 135 physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() override;
136 136
137 // Set the local state for tests. Consumer is responsible for cleaning it up 137 // Set the local state for tests. Consumer is responsible for cleaning it up
138 // afterwards (using ScopedTestingLocalState, for example). 138 // afterwards (using ScopedTestingLocalState, for example).
139 void SetLocalState(PrefService* local_state); 139 void SetLocalState(PrefService* local_state);
140 void SetProfileManager(ProfileManager* profile_manager); 140 void SetProfileManager(ProfileManager* profile_manager);
141 void SetIOThread(IOThread* io_thread); 141 void SetIOThread(IOThread* io_thread);
142 void SetSafeBrowsingService(safe_browsing::SafeBrowsingService* sb_service); 142 void SetSafeBrowsingService(safe_browsing::SafeBrowsingService* sb_service);
143 void SetRulesetService( 143 void SetRulesetService(
144 std::unique_ptr<subresource_filter::RulesetService> ruleset_service); 144 std::unique_ptr<subresource_filter::RulesetService> ruleset_service);
145 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); 145 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 class TestingBrowserProcessInitializer { 224 class TestingBrowserProcessInitializer {
225 public: 225 public:
226 TestingBrowserProcessInitializer(); 226 TestingBrowserProcessInitializer();
227 ~TestingBrowserProcessInitializer(); 227 ~TestingBrowserProcessInitializer();
228 228
229 private: 229 private:
230 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); 230 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer);
231 }; 231 };
232 232
233 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 233 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698