Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: webkit/glue/resource_fetcher_unittest.cc

Issue 3034038: GTTF: Move more test server code from net/url_request/url_request_unittest.h (Closed)
Patch Set: hopefully final Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | webkit/glue/unittest_test_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | webkit/glue/unittest_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698