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

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: Created 7 years, 8 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/net/connection_tester_unittest.cc
diff --git a/chrome/browser/net/connection_tester_unittest.cc b/chrome/browser/net/connection_tester_unittest.cc
index 3f537b088b6ad05435e36eb535e5a828462bff6a..9ca7cfd2b876482cfdf2dcbb4748b19b33d7a530 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::TestServer::TYPE_HTTP,
net::TestServer::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::TestServer 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

Powered by Google App Engine
This is Rietveld 408576698