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

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

Issue 7744039: Switch ChromeTestSuite to the same convention as ContentTestSuite: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixing Created 9 years, 4 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 #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/notifications/notification_ui_manager.h" 9 #include "chrome/browser/notifications/notification_ui_manager.h"
10 #include "chrome/browser/policy/browser_policy_connector.h" 10 #include "chrome/browser/policy/browser_policy_connector.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 google_url_tracker_.reset(google_url_tracker); 264 google_url_tracker_.reset(google_url_tracker);
265 } 265 }
266 266
267 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { 267 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) {
268 io_thread_ = io_thread; 268 io_thread_ = io_thread;
269 } 269 }
270 270
271 void TestingBrowserProcess::SetDevToolsManager(DevToolsManager* manager) { 271 void TestingBrowserProcess::SetDevToolsManager(DevToolsManager* manager) {
272 devtools_manager_.reset(manager); 272 devtools_manager_.reset(manager);
273 } 273 }
274
275 ScopedTestingBrowserProcess::ScopedTestingBrowserProcess() {
276 DCHECK(!g_browser_process);
277 g_browser_process = &browser_process_;
278 }
279
280 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() {
281 DCHECK_EQ(&browser_process_, g_browser_process);
282 g_browser_process = NULL;
283 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698