| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
| 7 | 7 |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 | 9 |
| 10 #include <sstream> | 10 #include <sstream> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/thread.h" | 21 #include "base/thread.h" |
| 22 #include "base/time.h" | 22 #include "base/time.h" |
| 23 #include "base/waitable_event.h" | 23 #include "base/waitable_event.h" |
| 24 #include "net/base/host_resolver.h" | 24 #include "net/base/host_resolver.h" |
| 25 #include "net/base/io_buffer.h" | 25 #include "net/base/io_buffer.h" |
| 26 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
| 27 #include "net/base/ssl_test_util.h" | |
| 28 #include "net/http/http_network_layer.h" | 27 #include "net/http/http_network_layer.h" |
| 28 #include "net/socket/ssl_test_util.h" |
| 29 #include "net/url_request/url_request.h" | 29 #include "net/url_request/url_request.h" |
| 30 #include "net/url_request/url_request_context.h" | 30 #include "net/url_request/url_request_context.h" |
| 31 #include "net/proxy/proxy_service.h" | 31 #include "net/proxy/proxy_service.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 33 #include "googleurl/src/url_util.h" | 33 #include "googleurl/src/url_util.h" |
| 34 | 34 |
| 35 const int kHTTPDefaultPort = 1337; | 35 const int kHTTPDefaultPort = 1337; |
| 36 const int kFTPDefaultPort = 1338; | 36 const int kFTPDefaultPort = 1338; |
| 37 | 37 |
| 38 const std::string kDefaultHostName("localhost"); | 38 const std::string kDefaultHostName("localhost"); |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 | 553 |
| 554 MessageLoop::current()->Run(); | 554 MessageLoop::current()->Run(); |
| 555 if (request.is_pending()) | 555 if (request.is_pending()) |
| 556 return false; | 556 return false; |
| 557 | 557 |
| 558 return true; | 558 return true; |
| 559 } | 559 } |
| 560 }; | 560 }; |
| 561 | 561 |
| 562 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 562 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
| OLD | NEW |