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

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

Issue 2361603002: Add an empty Android implementation of the PhysicalWebDataSource (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | 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) 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 #if defined(ENABLE_WEBRTC) 122 #if defined(ENABLE_WEBRTC)
123 WebRtcLogUploader* webrtc_log_uploader() override; 123 WebRtcLogUploader* webrtc_log_uploader() override;
124 #endif 124 #endif
125 125
126 network_time::NetworkTimeTracker* network_time_tracker() override; 126 network_time::NetworkTimeTracker* network_time_tracker() override;
127 127
128 gcm::GCMDriver* gcm_driver() override; 128 gcm::GCMDriver* gcm_driver() override;
129 memory::TabManager* GetTabManager() override; 129 memory::TabManager* GetTabManager() override;
130 shell_integration::DefaultWebClientState CachedDefaultWebClientState() 130 shell_integration::DefaultWebClientState CachedDefaultWebClientState()
131 override; 131 override;
132 PhysicalWebDataSource* GetPhysicalWebDataSource() override;
132 133
133 // Set the local state for tests. Consumer is responsible for cleaning it up 134 // Set the local state for tests. Consumer is responsible for cleaning it up
134 // afterwards (using ScopedTestingLocalState, for example). 135 // afterwards (using ScopedTestingLocalState, for example).
135 void SetLocalState(PrefService* local_state); 136 void SetLocalState(PrefService* local_state);
136 void SetProfileManager(ProfileManager* profile_manager); 137 void SetProfileManager(ProfileManager* profile_manager);
137 void SetIOThread(IOThread* io_thread); 138 void SetIOThread(IOThread* io_thread);
138 void SetSafeBrowsingService(safe_browsing::SafeBrowsingService* sb_service); 139 void SetSafeBrowsingService(safe_browsing::SafeBrowsingService* sb_service);
139 void SetRulesetService( 140 void SetRulesetService(
140 std::unique_ptr<subresource_filter::RulesetService> ruleset_service); 141 std::unique_ptr<subresource_filter::RulesetService> ruleset_service);
141 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); 142 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 class TestingBrowserProcessInitializer { 221 class TestingBrowserProcessInitializer {
221 public: 222 public:
222 TestingBrowserProcessInitializer(); 223 TestingBrowserProcessInitializer();
223 ~TestingBrowserProcessInitializer(); 224 ~TestingBrowserProcessInitializer();
224 225
225 private: 226 private:
226 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); 227 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer);
227 }; 228 };
228 229
229 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 230 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698