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 "webkit/glue/resource_fetcher.h" | 5 #include "webkit/glue/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/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon
se.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
14 #include "webkit/glue/unittest_test_server.h" | 14 #include "webkit/glue/unittest_test_server.h" |
15 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 15 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
16 #include "webkit/tools/test_shell/test_shell_test.h" | 16 #include "webkit/tools/test_shell/test_shell_test.h" |
17 | 17 |
18 using WebKit::WebFrame; | 18 using WebKit::WebFrame; |
19 using WebKit::WebURLRequest; | 19 using WebKit::WebURLRequest; |
20 using WebKit::WebURLResponse; | 20 using WebKit::WebURLResponse; |
21 using webkit_glue::ResourceFetcher; | 21 using webkit_glue::ResourceFetcher; |
22 using webkit_glue::ResourceFetcherWithTimeout; | 22 using webkit_glue::ResourceFetcherWithTimeout; |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcherWithTimeout( | 208 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcherWithTimeout( |
209 url, frame, WebURLRequest::TargetIsMainFrame, | 209 url, frame, WebURLRequest::TargetIsMainFrame, |
210 0, delegate->NewCallback())); | 210 0, delegate->NewCallback())); |
211 delegate->SetFetcher(fetcher.release()); | 211 delegate->SetFetcher(fetcher.release()); |
212 | 212 |
213 delegate->WaitForResponse(); | 213 delegate->WaitForResponse(); |
214 EXPECT_FALSE(delegate->timed_out()); | 214 EXPECT_FALSE(delegate->timed_out()); |
215 } | 215 } |
216 | 216 |
217 } // namespace | 217 } // namespace |
OLD | NEW |