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

Side by Side Diff: net/test/spawned_test_server/spawner_communicator.cc

Issue 6362186595172352: net: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and revert nss_ocsp.cc changes Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/test/spawned_test_server/spawner_communicator.h" 5 #include "net/test/spawned_test_server/spawner_communicator.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
11 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "googleurl/src/gurl.h"
16 #include "net/base/net_util.h" 15 #include "net/base/net_util.h"
17 #include "net/base/upload_bytes_element_reader.h" 16 #include "net/base/upload_bytes_element_reader.h"
18 #include "net/base/upload_data_stream.h" 17 #include "net/base/upload_data_stream.h"
19 #include "net/http/http_response_headers.h" 18 #include "net/http/http_response_headers.h"
20 #include "net/url_request/url_request_test_util.h" 19 #include "net/url_request/url_request_test_util.h"
20 #include "url/gurl.h"
21 21
22 namespace net { 22 namespace net {
23 23
24 namespace { 24 namespace {
25 25
26 GURL GenerateSpawnerCommandURL(const std::string& command, uint16 port) { 26 GURL GenerateSpawnerCommandURL(const std::string& command, uint16 port) {
27 // Always performs HTTP request for sending command to the spawner server. 27 // Always performs HTTP request for sending command to the spawner server.
28 return GURL(base::StringPrintf("%s:%u/%s", "http://127.0.0.1", port, 28 return GURL(base::StringPrintf("%s:%u/%s", "http://127.0.0.1", port,
29 command.c_str())); 29 command.c_str()));
30 } 30 }
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 std::string server_return_data; 370 std::string server_return_data;
371 int result_code; 371 int result_code;
372 SendCommandAndWaitForResult("kill", "", &result_code, &server_return_data); 372 SendCommandAndWaitForResult("kill", "", &result_code, &server_return_data);
373 Shutdown(); 373 Shutdown();
374 if (OK != result_code || server_return_data != "killed") 374 if (OK != result_code || server_return_data != "killed")
375 return false; 375 return false;
376 return true; 376 return true;
377 } 377 }
378 378
379 } // namespace net 379 } // namespace net
OLDNEW
« no previous file with comments | « net/test/spawned_test_server/remote_test_server.cc ('k') | net/third_party/mozilla_security_manager/nsKeygenHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698