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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_unittest.cc

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rearranged structures for greater consistency. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 "content/browser/renderer_host/resource_dispatcher_host.h" 5 #include "content/browser/renderer_host/resource_dispatcher_host.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "content/browser/browser_thread_impl.h" 13 #include "content/browser/browser_thread_impl.h"
14 #include "content/browser/child_process_security_policy.h" 14 #include "content/browser/child_process_security_policy.h"
15 #include "content/browser/download/download_id.h" 15 #include "content/browser/download/download_id.h"
16 #include "content/browser/download/download_id_factory.h" 16 #include "content/browser/download/download_id_factory.h"
17 #include "content/browser/download/download_manager.h"
Randy Smith (Not in Mondays) 2011/11/22 17:37:49 Remind me why this is needed?
ahendrickson 2011/11/22 23:46:44 It can be replaced with a forward declaration of D
17 #include "content/browser/mock_resource_context.h" 18 #include "content/browser/mock_resource_context.h"
18 #include "content/browser/renderer_host/dummy_resource_handler.h" 19 #include "content/browser/renderer_host/dummy_resource_handler.h"
19 #include "content/browser/renderer_host/global_request_id.h" 20 #include "content/browser/renderer_host/global_request_id.h"
20 #include "content/browser/renderer_host/resource_dispatcher_host.h" 21 #include "content/browser/renderer_host/resource_dispatcher_host.h"
21 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 22 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
22 #include "content/browser/renderer_host/resource_handler.h" 23 #include "content/browser/renderer_host/resource_handler.h"
23 #include "content/browser/renderer_host/resource_message_filter.h" 24 #include "content/browser/renderer_host/resource_message_filter.h"
24 #include "content/common/resource_messages.h" 25 #include "content/common/resource_messages.h"
25 #include "content/common/resource_response.h" 26 #include "content/common/resource_response.h"
26 #include "content/common/view_messages.h" 27 #include "content/common/view_messages.h"
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 net::URLRequestStatus status; 1259 net::URLRequestStatus status;
1259 1260
1260 void* iter = NULL; 1261 void* iter = NULL;
1261 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &request_id)); 1262 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &request_id));
1262 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &status)); 1263 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &status));
1263 1264
1264 EXPECT_EQ(1, request_id); 1265 EXPECT_EQ(1, request_id);
1265 EXPECT_EQ(net::URLRequestStatus::FAILED, status.status()); 1266 EXPECT_EQ(net::URLRequestStatus::FAILED, status.status());
1266 EXPECT_EQ(net::ERR_UNKNOWN_URL_SCHEME, status.error()); 1267 EXPECT_EQ(net::ERR_UNKNOWN_URL_SCHEME, status.error());
1267 } 1268 }
OLDNEW
« content/browser/download/download_types.h ('K') | « content/browser/download/save_package.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698