Chromium Code Reviews| Index: chrome/browser/sync/glue/http_bridge_unittest.cc |
| diff --git a/chrome/browser/sync/glue/http_bridge_unittest.cc b/chrome/browser/sync/glue/http_bridge_unittest.cc |
| index 0c5e3b410e12337a04b4fba9d57e1b53810264ab..208a4644541fe9feeb752e8be30a97fdd85afcde 100644 |
| --- a/chrome/browser/sync/glue/http_bridge_unittest.cc |
| +++ b/chrome/browser/sync/glue/http_bridge_unittest.cc |
| @@ -109,7 +109,7 @@ class ShuntedHttpBridge : public HttpBridge { |
| // We don't actually want to make a request for this test, so just callback |
| // as if it completed. |
| test_->GetIOThreadLoop()->PostTask(FROM_HERE, |
| - NewRunnableMethod(this, &ShuntedHttpBridge::CallOnURLFetchComplete)); |
| + base::Bind(&ShuntedHttpBridge::CallOnURLFetchComplete, this)); |
| } |
| private: |
| ~ShuntedHttpBridge() {} |
| @@ -136,8 +136,8 @@ TEST_F(HttpBridgeTest, TestUsesSameHttpNetworkSession) { |
| // URLRequestContextGetter::GetURLRequestContext on the IO thread. |
| BrowserThread::PostTask( |
| BrowserThread::IO, FROM_HERE, |
| - NewRunnableFunction(&HttpBridgeTest::TestSameHttpNetworkSession, |
| - MessageLoop::current(), this)); |
| + base::Bind(&HttpBridgeTest::TestSameHttpNetworkSession, |
| + MessageLoop::current(), this)); |
| MessageLoop::current()->Run(); |
| } |
| @@ -278,8 +278,8 @@ TEST_F(HttpBridgeTest, Abort) { |
| int os_error = 0; |
| int response_code = 0; |
| - BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, NewRunnableFunction( |
| - &HttpBridgeTest::Abort, http_bridge)); |
| + BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, base::Bind( |
| + &HttpBridgeTest::Abort, http_bridge)); |
|
akalin
2011/11/29 17:35:01
line up with (
Rick Campbell
2011/11/30 18:37:22
Done. Also put Bind call all on same line.
|
| bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code); |
| EXPECT_FALSE(success); |
| EXPECT_EQ(net::ERR_ABORTED, os_error); |