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 "base/message_loop_proxy.h" | 5 #include "base/message_loop_proxy.h" |
6 #include "base/thread.h" | 6 #include "base/threading/thread.h" |
7 #include "base/waitable_event.h" | 7 #include "base/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_throttler_manager.h" | 14 #include "net/url_request/url_request_throttler_manager.h" |
15 #include "net/url_request/url_request_unittest.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" |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 | 674 |
675 // Create the fetcher on the main thread. Since IO will happen on the main | 675 // Create the fetcher on the main thread. Since IO will happen on the main |
676 // thread, this will test URLFetcher's ability to do everything on one | 676 // thread, this will test URLFetcher's ability to do everything on one |
677 // thread. | 677 // thread. |
678 CreateFetcher(test_server.GetURL("defaultresponse")); | 678 CreateFetcher(test_server.GetURL("defaultresponse")); |
679 | 679 |
680 MessageLoop::current()->Run(); | 680 MessageLoop::current()->Run(); |
681 } | 681 } |
682 | 682 |
683 } // namespace. | 683 } // namespace. |
OLD | NEW |