| 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 "content/renderer/fetchers/resource_fetcher.h" | 5 #include "content/renderer/fetchers/resource_fetcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/timer.h" | 11 #include "base/timer.h" |
| 12 #include "content/public/common/content_switches.h" | 12 #include "content/public/common/content_switches.h" |
| 13 #include "content/public/renderer/render_view.h" | 13 #include "content/public/renderer/render_view.h" |
| 14 #include "content/public/test/test_utils.h" | 14 #include "content/public/test/test_utils.h" |
| 15 #include "content/shell/shell.h" | 15 #include "content/shell/shell.h" |
| 16 #include "content/test/content_browser_test.h" | 16 #include "content/test/content_browser_test.h" |
| 17 #include "content/test/content_browser_test_utils.h" | 17 #include "content/test/content_browser_test_utils.h" |
| 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 18 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 21 | 21 |
| 22 using WebKit::WebFrame; | 22 using WebKit::WebFrame; |
| 23 using WebKit::WebURLRequest; | 23 using WebKit::WebURLRequest; |
| 24 using WebKit::WebURLResponse; | 24 using WebKit::WebURLResponse; |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 | 27 |
| 28 static const int kMaxWaitTimeMs = 5000; | 28 static const int kMaxWaitTimeMs = 5000; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 ASSERT_TRUE(test_server()->Start()); | 273 ASSERT_TRUE(test_server()->Start()); |
| 274 GURL url(test_server()->GetURL("slow?1")); | 274 GURL url(test_server()->GetURL("slow?1")); |
| 275 | 275 |
| 276 PostTaskToInProcessRendererAndWait( | 276 PostTaskToInProcessRendererAndWait( |
| 277 base::Bind( | 277 base::Bind( |
| 278 &ResourceFetcherTests::ResourceFetcherDeletedInCallbackOnRenderer, | 278 &ResourceFetcherTests::ResourceFetcherDeletedInCallbackOnRenderer, |
| 279 base::Unretained(this), url)); | 279 base::Unretained(this), url)); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace content | 282 } // namespace content |
| OLD | NEW |