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

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

Issue 10479018: Add base::RunLoop and update ui_test_utils to use it to reduce flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change Quit to QuitNow in places where it makes sense Created 8 years, 6 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 #include "chrome/test/base/testing_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class QuittingHistoryDBTask : public HistoryDBTask { 80 class QuittingHistoryDBTask : public HistoryDBTask {
81 public: 81 public:
82 QuittingHistoryDBTask() {} 82 QuittingHistoryDBTask() {}
83 83
84 virtual bool RunOnDBThread(history::HistoryBackend* backend, 84 virtual bool RunOnDBThread(history::HistoryBackend* backend,
85 history::HistoryDatabase* db) { 85 history::HistoryDatabase* db) {
86 return true; 86 return true;
87 } 87 }
88 88
89 virtual void DoneRunOnMainThread() { 89 virtual void DoneRunOnMainThread() {
90 MessageLoop::current()->Quit(); 90 MessageLoop::current()->QuitNow();
91 } 91 }
92 92
93 private: 93 private:
94 ~QuittingHistoryDBTask() {} 94 ~QuittingHistoryDBTask() {}
95 95
96 DISALLOW_COPY_AND_ASSIGN(QuittingHistoryDBTask); 96 DISALLOW_COPY_AND_ASSIGN(QuittingHistoryDBTask);
97 }; 97 };
98 98
99 class TestExtensionURLRequestContext : public net::URLRequestContext { 99 class TestExtensionURLRequestContext : public net::URLRequestContext {
100 public: 100 public:
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 712 }
713 713
714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
715 return true; 715 return true;
716 } 716 }
717 717
718 base::Callback<ChromeURLDataManagerBackend*(void)> 718 base::Callback<ChromeURLDataManagerBackend*(void)>
719 TestingProfile::GetChromeURLDataManagerBackendGetter() const { 719 TestingProfile::GetChromeURLDataManagerBackendGetter() const {
720 return base::Callback<ChromeURLDataManagerBackend*(void)>(); 720 return base::Callback<ChromeURLDataManagerBackend*(void)>();
721 } 721 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698