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 "webkit/glue/resource_fetcher.h" | 5 #include "webkit/glue/resource_fetcher.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/message_loop.h" |
8 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
11 #include "webkit/glue/unittest_test_server.h" | 12 #include "webkit/glue/unittest_test_server.h" |
12 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 13 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
13 #include "webkit/tools/test_shell/test_shell_test.h" | 14 #include "webkit/tools/test_shell/test_shell_test.h" |
14 | 15 |
15 #if defined(TOOLKIT_USES_GTK) | 16 #if defined(TOOLKIT_USES_GTK) |
16 #include <gtk/gtk.h> | 17 #include <gtk/gtk.h> |
17 #endif | 18 #endif |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 226 |
226 // When we timeout, we still call the Delegate callback but we pass in empty | 227 // When we timeout, we still call the Delegate callback but we pass in empty |
227 // values. | 228 // values. |
228 EXPECT_TRUE(delegate->completed()); | 229 EXPECT_TRUE(delegate->completed()); |
229 EXPECT_TRUE(delegate->response().isNull()); | 230 EXPECT_TRUE(delegate->response().isNull()); |
230 EXPECT_EQ(delegate->data(), std::string()); | 231 EXPECT_EQ(delegate->data(), std::string()); |
231 EXPECT_TRUE(delegate->time_elapsed_ms() < kMaxWaitTimeMs); | 232 EXPECT_TRUE(delegate->time_elapsed_ms() < kMaxWaitTimeMs); |
232 } | 233 } |
233 | 234 |
234 } // namespace | 235 } // namespace |
OLD | NEW |