diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-23 20:51:34 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-23 20:51:34 +0000 |
commit | 2da659e6279cf515940eb8a091e09e27281a97d6 (patch) | |
tree | a34e2eeea8194a16603e24149ae634cb54ddab62 /net/dns/dns_transaction_unittest.cc | |
parent | 954f56f3aceed29573f841648168b91c1fd43074 (diff) | |
download | chromium_src-2da659e6279cf515940eb8a091e09e27281a97d6.zip chromium_src-2da659e6279cf515940eb8a091e09e27281a97d6.tar.gz chromium_src-2da659e6279cf515940eb8a091e09e27281a97d6.tar.bz2 |
net: Use base::MessageLoop.
BUG=236029
R=agl@chromium.org
Review URL: https://chromiumcodereview.appspot.com/14021017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/dns/dns_transaction_unittest.cc')
-rw-r--r-- | net/dns/dns_transaction_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/dns/dns_transaction_unittest.cc b/net/dns/dns_transaction_unittest.cc index 71b5d79..f6fb8e5 100644 --- a/net/dns/dns_transaction_unittest.cc +++ b/net/dns/dns_transaction_unittest.cc @@ -276,7 +276,7 @@ class TransactionHelper { // Tell MessageLoop to quit now, in case any ASSERT_* fails. if (quit_in_callback_) - MessageLoop::current()->Quit(); + base::MessageLoop::current()->Quit(); if (expected_answer_count_ >= 0) { ASSERT_EQ(OK, rv); @@ -303,7 +303,7 @@ class TransactionHelper { bool Run(DnsTransactionFactory* factory) { StartTransaction(factory); - MessageLoop::current()->RunUntilIdle(); + base::MessageLoop::current()->RunUntilIdle(); return has_completed(); } @@ -311,7 +311,7 @@ class TransactionHelper { bool RunUntilDone(DnsTransactionFactory* factory) { set_quit_in_callback(); StartTransaction(factory); - MessageLoop::current()->Run(); + base::MessageLoop::current()->Run(); return has_completed(); } @@ -498,7 +498,7 @@ TEST_F(DnsTransactionTest, ConcurrentLookup) { TransactionHelper helper1(kT1HostName, kT1Qtype, kT1RecordCount); helper1.StartTransaction(transaction_factory_.get()); - MessageLoop::current()->RunUntilIdle(); + base::MessageLoop::current()->RunUntilIdle(); EXPECT_TRUE(helper0.has_completed()); EXPECT_TRUE(helper1.has_completed()); @@ -517,7 +517,7 @@ TEST_F(DnsTransactionTest, CancelLookup) { helper0.Cancel(); - MessageLoop::current()->RunUntilIdle(); + base::MessageLoop::current()->RunUntilIdle(); EXPECT_FALSE(helper0.has_completed()); EXPECT_TRUE(helper1.has_completed()); @@ -533,7 +533,7 @@ TEST_F(DnsTransactionTest, DestroyFactory) { // Destroying the client does not affect running requests. transaction_factory_.reset(NULL); - MessageLoop::current()->RunUntilIdle(); + base::MessageLoop::current()->RunUntilIdle(); EXPECT_TRUE(helper0.has_completed()); } @@ -624,7 +624,7 @@ TEST_F(DnsTransactionTest, Timeout) { TransactionHelper helper0(kT0HostName, kT0Qtype, ERR_DNS_TIMED_OUT); EXPECT_TRUE(helper0.RunUntilDone(transaction_factory_.get())); - MessageLoop::current()->AssertIdle(); + base::MessageLoop::current()->AssertIdle(); } TEST_F(DnsTransactionTest, ServerFallbackAndRotate) { |