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

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

Issue 6523032: Even more test cleanup. Some fixes to non-test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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) 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_
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual base::WaitableEvent* shutdown_event(); 113 virtual base::WaitableEvent* shutdown_event();
114 114
115 virtual void CheckForInspectorFiles() {} 115 virtual void CheckForInspectorFiles() {}
116 116
117 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 117 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
118 virtual void StartAutoupdateTimer() {} 118 virtual void StartAutoupdateTimer() {}
119 #endif 119 #endif
120 120
121 virtual bool have_inspector_files() const; 121 virtual bool have_inspector_files() const;
122 122
123 virtual ChromeNetLog* net_log() { return NULL; } 123 virtual ChromeNetLog* net_log();
124 124
125 #if defined(IPC_MESSAGE_LOG_ENABLED) 125 #if defined(IPC_MESSAGE_LOG_ENABLED)
126 virtual void SetIPCLoggingEnabled(bool enable) {} 126 virtual void SetIPCLoggingEnabled(bool enable) {}
127 #endif 127 #endif
128 128
129 void SetPrefService(PrefService* pref_service); 129 void SetPrefService(PrefService* pref_service);
130 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); 130 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker);
131 131
132 private: 132 private:
133 NotificationService notification_service_; 133 NotificationService notification_service_;
(...skipping 19 matching lines...) Expand all
153 153
154 private: 154 private:
155 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. 155 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
156 // After the transition is over, we should just stack-allocate it. 156 // After the transition is over, we should just stack-allocate it.
157 scoped_ptr<TestingBrowserProcess> browser_process_; 157 scoped_ptr<TestingBrowserProcess> browser_process_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); 159 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess);
160 }; 160 };
161 161
162 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 162 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698