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

Unified Diff: chrome/browser/net/connection_tester_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
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/net/dns_probe_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/connection_tester_unittest.cc
diff --git a/chrome/browser/net/connection_tester_unittest.cc b/chrome/browser/net/connection_tester_unittest.cc
index aafd6fe86cdc692e044a021ed0c3f5f095f478fa..c3860815187b3c7e5d38ca54105976265c96017f 100644
--- a/chrome/browser/net/connection_tester_unittest.cc
+++ b/chrome/browser/net/connection_tester_unittest.cc
@@ -54,7 +54,7 @@ class ConnectionTesterDelegate : public ConnectionTester::Delegate {
virtual void OnCompletedConnectionTestSuite() OVERRIDE {
completed_connection_test_suite_count_++;
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
int start_connection_test_suite_count() const {
@@ -87,7 +87,7 @@ class ConnectionTesterDelegate : public ConnectionTester::Delegate {
class ConnectionTesterTest : public PlatformTest {
public:
ConnectionTesterTest()
- : message_loop_(MessageLoop::TYPE_IO),
+ : message_loop_(base::MessageLoop::TYPE_IO),
io_thread_(BrowserThread::IO, &message_loop_),
test_server_(net::SpawnedTestServer::TYPE_HTTP,
net::SpawnedTestServer::kLocalhost,
@@ -103,7 +103,7 @@ class ConnectionTesterTest : public PlatformTest {
// SSLClientAuthCache calls RemoveObserver when destroyed, but if the
// MessageLoop is already destroyed, then the RemoveObserver will be a
// no-op, and the ObserverList will contain invalid entries.
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
content::TestBrowserThread io_thread_;
net::SpawnedTestServer test_server_;
ConnectionTesterDelegate test_delegate_;
@@ -157,7 +157,7 @@ TEST_F(ConnectionTesterTest, RunAllTests) {
tester.RunAllTests(test_server_.GetURL("echoall"));
// Wait for all the tests to complete.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
const int kNumExperiments =
ConnectionTester::PROXY_EXPERIMENT_COUNT *
@@ -203,8 +203,9 @@ TEST_F(ConnectionTesterTest, DeleteWhileInProgress) {
// |backup_task| that it will try to deref during the destructor, but
// depending on the order that pending tasks were deleted in, it might
// already be invalid! See http://crbug.com/43291.
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
+ base::MessageLoop::current()->Run();
}
} // namespace
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/net/dns_probe_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698