| 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/message_loop_proxy.h" | 6 #include "base/message_loop_proxy.h" |
| 7 #include "base/ref_counted.h" | 7 #include "base/ref_counted.h" |
| 8 #include "base/synchronization/waitable_event.h" |
| 8 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 9 #include "base/synchronization/waitable_event.h" | |
| 10 #include "chrome/common/net/url_request_context_getter.h" | 10 #include "chrome/common/net/url_request_context_getter.h" |
| 11 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" |
| 11 #include "chrome/service/service_process.h" | 12 #include "chrome/service/service_process.h" |
| 12 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" | |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "net/test/test_server.h" | 14 #include "net/test/test_server.h" |
| 15 #include "net/url_request/url_request_status.h" | 15 #include "net/url_request/url_request_status.h" |
| 16 #include "net/url_request/url_request_test_util.h" |
| 16 #include "net/url_request/url_request_throttler_manager.h" | 17 #include "net/url_request/url_request_throttler_manager.h" |
| 17 #include "net/url_request/url_request_unittest.h" | |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 using base::Time; | 20 using base::Time; |
| 21 using base::TimeDelta; | 21 using base::TimeDelta; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data"); | 25 const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data"); |
| 26 | 26 |
| 27 int g_request_context_getter_instances = 0; | 27 int g_request_context_getter_instances = 0; |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 url, entry); | 348 url, entry); |
| 349 | 349 |
| 350 CreateFetcher(url, 11); | 350 CreateFetcher(url, 11); |
| 351 | 351 |
| 352 MessageLoop::current()->Run(); | 352 MessageLoop::current()->Run(); |
| 353 | 353 |
| 354 net::URLRequestThrottlerManager::GetInstance()->EraseEntryForTests(url); | 354 net::URLRequestThrottlerManager::GetInstance()->EraseEntryForTests(url); |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace. | 357 } // namespace. |
| OLD | NEW |