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

Unified Diff: chrome/browser/ui/app_list/search/webstore_provider_browsertest.cc

Issue 16268017: GTTF: convert some tests in chrome to use EmbeddedTestServer patch nr 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/translate/translate_browsertest.cc ('k') | chrome/browser/ui/browser_focus_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/search/webstore_provider_browsertest.cc
diff --git a/chrome/browser/ui/app_list/search/webstore_provider_browsertest.cc b/chrome/browser/ui/app_list/search/webstore_provider_browsertest.cc
index 9caf94935e4f05cd723d3290932c31fa11df7b48..d7b2a4776cae22d4933e2d7e524fbaf29371b346 100644
--- a/chrome/browser/ui/app_list/search/webstore_provider_browsertest.cc
+++ b/chrome/browser/ui/app_list/search/webstore_provider_browsertest.cc
@@ -98,11 +98,11 @@ class WebstoreProviderTest : public InProcessBrowserTest {
if (request.relative_url.find("/jsonsearch?") != std::string::npos) {
if (mock_server_response_ == "404") {
- response->set_code(net::test_server::NOT_FOUND);
+ response->set_code(net::HTTP_NOT_FOUND);
} else if (mock_server_response_ == "500") {
- response->set_code(net::test_server::ACCESS_DENIED);
+ response->set_code(net::HTTP_INTERNAL_SERVER_ERROR);
} else {
- response->set_code(net::test_server::SUCCESS);
+ response->set_code(net::HTTP_OK);
response->set_content(mock_server_response_);
}
}
« no previous file with comments | « chrome/browser/translate/translate_browsertest.cc ('k') | chrome/browser/ui/browser_focus_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698