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

Unified Diff: chrome/browser/value_store/value_store_frontend_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/value_store/value_store_frontend_unittest.cc
diff --git a/chrome/browser/value_store/value_store_frontend_unittest.cc b/chrome/browser/value_store/value_store_frontend_unittest.cc
index 6cd7b4b65ebb2cb454efa2715fd30ac9ac5f78dd..cc3ca1fcb600e816cd571dd5da983f981d7aeadc 100644
--- a/chrome/browser/value_store/value_store_frontend_unittest.cc
+++ b/chrome/browser/value_store/value_store_frontend_unittest.cc
@@ -19,8 +19,8 @@ using content::BrowserThread;
class ValueStoreFrontendTest : public testing::Test {
public:
ValueStoreFrontendTest()
- : ui_thread_(BrowserThread::UI, MessageLoop::current()),
- file_thread_(BrowserThread::FILE, MessageLoop::current()) {
+ : ui_thread_(BrowserThread::UI, base::MessageLoop::current()),
+ file_thread_(BrowserThread::FILE, base::MessageLoop::current()) {
}
virtual void SetUp() {
@@ -36,7 +36,7 @@ class ValueStoreFrontendTest : public testing::Test {
}
virtual void TearDown() {
- MessageLoop::current()->RunUntilIdle(); // wait for storage to delete
+ base::MessageLoop::current()->RunUntilIdle(); // wait for storage to delete
storage_.reset();
}
@@ -48,7 +48,7 @@ class ValueStoreFrontendTest : public testing::Test {
bool Get(const std::string& key, scoped_ptr<base::Value>* output) {
storage_->Get(key, base::Bind(&ValueStoreFrontendTest::GetAndWait,
base::Unretained(this), output));
- MessageLoop::current()->Run(); // wait for GetAndWait
+ base::MessageLoop::current()->Run(); // wait for GetAndWait
return !!output->get();
}
@@ -56,13 +56,13 @@ class ValueStoreFrontendTest : public testing::Test {
void GetAndWait(scoped_ptr<base::Value>* output,
scoped_ptr<base::Value> result) {
*output = result.Pass();
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
scoped_ptr<ValueStoreFrontend> storage_;
base::ScopedTempDir temp_dir_;
base::FilePath db_path_;
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
};
« no previous file with comments | « chrome/browser/user_style_sheet_watcher_unittest.cc ('k') | chrome/browser/value_store/value_store_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698