OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/test_server.h" | 5 #include "net/test/test_server.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/file_util.h" | 21 #include "base/file_util.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
24 #include "base/scoped_ptr.h" | 24 #include "base/scoped_ptr.h" |
25 #include "base/string_number_conversions.h" | 25 #include "base/string_number_conversions.h" |
26 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" |
27 #include "base/values.h" | 27 #include "base/values.h" |
28 #include "googleurl/src/gurl.h" | 28 #include "googleurl/src/gurl.h" |
29 #include "net/base/host_port_pair.h" | 29 #include "net/base/host_port_pair.h" |
30 #include "net/base/host_resolver.h" | 30 #include "net/base/host_resolver.h" |
| 31 #include "net/base/net_errors.h" |
31 #include "net/base/test_completion_callback.h" | 32 #include "net/base/test_completion_callback.h" |
32 #include "net/base/test_root_certs.h" | 33 #include "net/base/test_root_certs.h" |
33 #include "net/socket/tcp_client_socket.h" | 34 #include "net/socket/tcp_client_socket.h" |
34 #include "net/test/python_utils.h" | 35 #include "net/test/python_utils.h" |
35 #include "testing/platform_test.h" | 36 #include "testing/platform_test.h" |
36 | 37 |
37 namespace net { | 38 namespace net { |
38 | 39 |
39 namespace { | 40 namespace { |
40 | 41 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 } | 383 } |
383 if ((port <= 0) || (port > kuint16max)) { | 384 if ((port <= 0) || (port > kuint16max)) { |
384 LOG(ERROR) << "Invalid port value: " << port; | 385 LOG(ERROR) << "Invalid port value: " << port; |
385 return false; | 386 return false; |
386 } | 387 } |
387 host_port_pair_.set_port(port); | 388 host_port_pair_.set_port(port); |
388 return true; | 389 return true; |
389 } | 390 } |
390 | 391 |
391 } // namespace net | 392 } // namespace net |
OLD | NEW |