| 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 #include "base/thread.h" | 5 #include "base/thread.h" |
| 6 #include "base/time.h" | 6 #include "base/time.h" |
| 7 #include "base/timer.h" | 7 #include "base/timer.h" |
| 8 #include "chrome/browser/net/url_fetcher.h" | 8 #include "chrome/browser/net/url_fetcher.h" |
| 9 #include "chrome/browser/net/url_fetcher_protect.h" | 9 #include "chrome/browser/net/url_fetcher_protect.h" |
| 10 #include "chrome/common/chrome_plugin_lib.h" | 10 #include "chrome/common/chrome_plugin_lib.h" |
| 11 #include "net/base/ssl_test_util.h" | |
| 12 #include "net/http/http_response_headers.h" | 11 #include "net/http/http_response_headers.h" |
| 12 #include "net/socket/ssl_test_util.h" |
| 13 #include "net/url_request/url_request_unittest.h" | 13 #include "net/url_request/url_request_unittest.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 using base::Time; | 16 using base::Time; |
| 17 using base::TimeDelta; | 17 using base::TimeDelta; |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const wchar_t kDocRoot[] = L"chrome/test/data"; | 21 const wchar_t kDocRoot[] = L"chrome/test/data"; |
| 22 | 22 |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // message loop will be shut down automatically as the thread goes out of | 456 // message loop will be shut down automatically as the thread goes out of |
| 457 // scope. | 457 // scope. |
| 458 base::Thread t("URLFetcher test thread"); | 458 base::Thread t("URLFetcher test thread"); |
| 459 t.Start(); | 459 t.Start(); |
| 460 t.message_loop()->PostTask(FROM_HERE, new FetcherWrapperTask(this, url)); | 460 t.message_loop()->PostTask(FROM_HERE, new FetcherWrapperTask(this, url)); |
| 461 | 461 |
| 462 MessageLoop::current()->Run(); | 462 MessageLoop::current()->Run(); |
| 463 } | 463 } |
| 464 | 464 |
| 465 } // namespace. | 465 } // namespace. |
| OLD | NEW |