| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop_proxy.h" | 5 #include "base/message_loop_proxy.h" |
| 6 #include "base/synchronization/waitable_event.h" |
| 6 #include "base/threading/thread.h" | 7 #include "base/threading/thread.h" |
| 7 #include "base/synchronization/waitable_event.h" | |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/common/chrome_plugin_lib.h" | 9 #include "chrome/common/chrome_plugin_lib.h" |
| 10 #include "chrome/common/net/url_fetcher.h" | 10 #include "chrome/common/net/url_fetcher.h" |
| 11 #include "chrome/common/net/url_request_context_getter.h" | 11 #include "chrome/common/net/url_request_context_getter.h" |
| 12 #include "net/http/http_response_headers.h" | 12 #include "net/http/http_response_headers.h" |
| 13 #include "net/test/test_server.h" | 13 #include "net/test/test_server.h" |
| 14 #include "net/url_request/url_request_test_util.h" |
| 14 #include "net/url_request/url_request_throttler_manager.h" | 15 #include "net/url_request/url_request_throttler_manager.h" |
| 15 #include "net/url_request/url_request_unittest.h" | |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 #if defined(USE_NSS) | 18 #if defined(USE_NSS) |
| 19 #include "net/ocsp/nss_ocsp.h" | 19 #include "net/ocsp/nss_ocsp.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 using base::Time; | 22 using base::Time; |
| 23 using base::TimeDelta; | 23 using base::TimeDelta; |
| 24 | 24 |
| 25 // TODO(eroman): Add a regression test for http://crbug.com/40505. | 25 // TODO(eroman): Add a regression test for http://crbug.com/40505. |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 | 696 |
| 697 // Create the fetcher on the main thread. Since IO will happen on the main | 697 // Create the fetcher on the main thread. Since IO will happen on the main |
| 698 // thread, this will test URLFetcher's ability to do everything on one | 698 // thread, this will test URLFetcher's ability to do everything on one |
| 699 // thread. | 699 // thread. |
| 700 CreateFetcher(test_server.GetURL("defaultresponse")); | 700 CreateFetcher(test_server.GetURL("defaultresponse")); |
| 701 | 701 |
| 702 MessageLoop::current()->Run(); | 702 MessageLoop::current()->Run(); |
| 703 } | 703 } |
| 704 | 704 |
| 705 } // namespace. | 705 } // namespace. |
| OLD | NEW |