diff options
author | skyostil <skyostil@chromium.org> | 2015-06-02 12:03:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-02 19:05:11 +0000 |
commit | b0daa011ba68aa9079f31925faa9a7ca88894770 (patch) | |
tree | 8fb2c57a520058df58dba9ba34906af098f715f3 /components/leveldb_proto/proto_database_impl_unittest.cc | |
parent | 3f2a3abd4acdd336e4c76ce963663507bd05e7bd (diff) | |
download | chromium_src-b0daa011ba68aa9079f31925faa9a7ca88894770.zip chromium_src-b0daa011ba68aa9079f31925faa9a7ca88894770.tar.gz chromium_src-b0daa011ba68aa9079f31925faa9a7ca88894770.tar.bz2 |
components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs
This patch was mostly autogenerated with
https://codereview.chromium.org/1010073002/.
BUG=465354
Review URL: https://codereview.chromium.org/1144153004
Cr-Commit-Position: refs/heads/master@{#332440}
Diffstat (limited to 'components/leveldb_proto/proto_database_impl_unittest.cc')
-rw-r--r-- | components/leveldb_proto/proto_database_impl_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/leveldb_proto/proto_database_impl_unittest.cc b/components/leveldb_proto/proto_database_impl_unittest.cc index e1d3144..b2fcd18 100644 --- a/components/leveldb_proto/proto_database_impl_unittest.cc +++ b/components/leveldb_proto/proto_database_impl_unittest.cc @@ -9,6 +9,7 @@ #include "base/bind.h" #include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" +#include "base/location.h" #include "base/run_loop.h" #include "base/threading/thread.h" #include "components/leveldb_proto/leveldb_database.h" @@ -86,8 +87,7 @@ class ProtoDatabaseImplTest : public testing::Test { public: void SetUp() override { main_loop_.reset(new MessageLoop()); - db_.reset( - new ProtoDatabaseImpl<TestProto>(main_loop_->message_loop_proxy())); + db_.reset(new ProtoDatabaseImpl<TestProto>(main_loop_->task_runner())); } void TearDown() override { @@ -332,8 +332,8 @@ TEST(ProtoDatabaseImplThreadingTest, TestDBDestruction) { base::Thread db_thread("dbthread"); ASSERT_TRUE(db_thread.Start()); - scoped_ptr<ProtoDatabaseImpl<TestProto> > db( - new ProtoDatabaseImpl<TestProto>(db_thread.message_loop_proxy())); + scoped_ptr<ProtoDatabaseImpl<TestProto>> db( + new ProtoDatabaseImpl<TestProto>(db_thread.task_runner())); MockDatabaseCaller caller; EXPECT_CALL(caller, InitCallback(_)); @@ -343,7 +343,7 @@ TEST(ProtoDatabaseImplThreadingTest, TestDBDestruction) { db.reset(); base::RunLoop run_loop; - db_thread.message_loop_proxy()->PostTaskAndReply( + db_thread.task_runner()->PostTaskAndReply( FROM_HERE, base::Bind(base::DoNothing), run_loop.QuitClosure()); run_loop.Run(); } |