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

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

Issue 15069003: Rename the embedded test server to EmbeddedTestServer in net::test_server namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit 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 | « no previous file | chrome/browser/chromeos/login/kiosk_browsertest.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 3b27179fac888367f1555ebd49e517b345f597a9..648c32f2352643a0c260b4664730ad7b01e875aa 100644
--- a/chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc
+++ b/chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc
@@ -22,9 +22,9 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread.h"
#include "content/public/test/test_utils.h"
+#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
-#include "net/test/embedded_test_server/http_server.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/size.h"
@@ -85,7 +85,7 @@ class GDataContactsServiceTest : public testing::Test {
content::BrowserThread::IO));
test_server_.reset(
- new google_apis::test_server::HttpServer(
+ new net::test_server::EmbeddedTestServer(
content::BrowserThread::GetMessageLoopProxyForThread(
content::BrowserThread::IO)));
ASSERT_TRUE(test_server_->InitializeAndWaitUntilReady());
@@ -137,7 +137,7 @@ class GDataContactsServiceTest : public testing::Test {
}
scoped_ptr<GDataContactsService> service_;
- scoped_ptr<google_apis::test_server::HttpServer> test_server_;
+ scoped_ptr<net::test_server::EmbeddedTestServer> test_server_;
private:
// Rewrites |original_url|, a photo URL from a contacts feed, to instead point
@@ -164,11 +164,11 @@ class GDataContactsServiceTest : public testing::Test {
// Handles a request for downloading a file. Reads a requested file and
// returns the content.
- scoped_ptr<google_apis::test_server::HttpResponse> HandleDownloadRequest(
- const google_apis::test_server::HttpRequest& request) {
+ 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<google_apis::test_server::HttpResponse> result =
+ scoped_ptr<net::test_server::HttpResponse> result =
google_apis::test_util::CreateHttpResponseFromFile(
google_apis::test_util::GetTestFilePath(
std::string("chromeos/gdata/contacts") + request.relative_url));
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/kiosk_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698