| OLD | NEW |
| 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/url_request/url_request_context_builder.h" | 5 #include "net/url_request/url_request_context_builder.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "net/test/spawned_test_server.h" | 8 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 9 #include "net/url_request/url_request.h" | 9 #include "net/url_request/url_request.h" |
| 10 #include "net/url_request/url_request_test_util.h" | 10 #include "net/url_request/url_request_test_util.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "testing/platform_test.h" | 12 #include "testing/platform_test.h" |
| 13 | 13 |
| 14 #if defined(OS_LINUX) || defined(OS_ANDROID) | 14 #if defined(OS_LINUX) || defined(OS_ANDROID) |
| 15 #include "net/proxy/proxy_config.h" | 15 #include "net/proxy/proxy_config.h" |
| 16 #include "net/proxy/proxy_config_service_fixed.h" | 16 #include "net/proxy/proxy_config_service_fixed.h" |
| 17 #endif // defined(OS_LINUX) || defined(OS_ANDROID) | 17 #endif // defined(OS_LINUX) || defined(OS_ANDROID) |
| 18 | 18 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 test_server_.GetURL("echoheader?User-Agent"), &delegate, context.get()); | 74 test_server_.GetURL("echoheader?User-Agent"), &delegate, context.get()); |
| 75 request.set_method("GET"); | 75 request.set_method("GET"); |
| 76 request.Start(); | 76 request.Start(); |
| 77 MessageLoop::current()->Run(); | 77 MessageLoop::current()->Run(); |
| 78 EXPECT_EQ("Bar", delegate.data_received()); | 78 EXPECT_EQ("Bar", delegate.data_received()); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace | 81 } // namespace |
| 82 | 82 |
| 83 } // namespace net | 83 } // namespace net |
| OLD | NEW |