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

Unified Diff: chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc

Issue 37683004: GTTF: Make EmbeddedTestServer always use its own thread for IO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 2 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 | « no previous file | chrome/browser/extensions/api/streams_private/streams_private_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc
diff --git a/chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc b/chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc
index 3dbcae315148e279a2ca00630a5d513f9080a8d1..ea4546c52dce907317e41bea1829feca14db29b7 100644
--- a/chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc
+++ b/chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc
@@ -78,10 +78,7 @@ class GDataContactsServiceTest : public testing::Test {
content::BrowserThread::GetMessageLoopProxyForThread(
content::BrowserThread::IO));
- test_server_.reset(
- new net::test_server::EmbeddedTestServer(
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::IO)));
+ test_server_.reset(new net::test_server::EmbeddedTestServer);
ASSERT_TRUE(test_server_->InitializeAndWaitUntilReady());
test_server_->RegisterRequestHandler(
base::Bind(&GDataContactsServiceTest::HandleDownloadRequest,
@@ -156,7 +153,6 @@ class GDataContactsServiceTest : public testing::Test {
// returns the content.
scoped_ptr<net::test_server::HttpResponse> HandleDownloadRequest(
const net::test_server::HttpRequest& request) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// Requested url must not contain a query string.
scoped_ptr<net::test_server::BasicHttpResponse> result =
google_apis::test_util::CreateHttpResponseFromFile(
« no previous file with comments | « no previous file | chrome/browser/extensions/api/streams_private/streams_private_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698