Chromium Code Reviews| 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 "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" |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 #include "content/common/view_messages.h" | 26 #include "content/common/view_messages.h" |
| 27 #include "net/base/net_errors.h" | 27 #include "net/base/net_errors.h" |
| 28 #include "net/base/upload_data.h" | 28 #include "net/base/upload_data.h" |
| 29 #include "net/http/http_util.h" | 29 #include "net/http/http_util.h" |
| 30 #include "net/url_request/url_request.h" | 30 #include "net/url_request/url_request.h" |
| 31 #include "net/url_request/url_request_job.h" | 31 #include "net/url_request/url_request_job.h" |
| 32 #include "net/url_request/url_request_test_job.h" | 32 #include "net/url_request/url_request_test_job.h" |
| 33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
| 34 #include "webkit/appcache/appcache_interfaces.h" | 34 #include "webkit/appcache/appcache_interfaces.h" |
| 35 | 35 |
| 36 class DownloadManager; | |
|
Randy Smith (Not in Mondays)
2011/11/23 19:25:13
I'm still confused as to what change in this CL ma
ahendrickson
2011/12/20 00:04:14
I removed:
#include "download_file.h"
from downl
| |
| 37 | |
| 36 using content::BrowserThread; | 38 using content::BrowserThread; |
| 37 using content::BrowserThreadImpl; | 39 using content::BrowserThreadImpl; |
| 38 | 40 |
| 39 // TODO(eroman): Write unit tests for SafeBrowsing that exercise | 41 // TODO(eroman): Write unit tests for SafeBrowsing that exercise |
| 40 // SafeBrowsingResourceHandler. | 42 // SafeBrowsingResourceHandler. |
| 41 | 43 |
| 42 namespace { | 44 namespace { |
| 43 | 45 |
| 44 // Returns the resource response header structure for this request. | 46 // Returns the resource response header structure for this request. |
| 45 void GetResponseHead(const std::vector<IPC::Message>& messages, | 47 void GetResponseHead(const std::vector<IPC::Message>& messages, |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1258 net::URLRequestStatus status; | 1260 net::URLRequestStatus status; |
| 1259 | 1261 |
| 1260 void* iter = NULL; | 1262 void* iter = NULL; |
| 1261 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &request_id)); | 1263 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &request_id)); |
| 1262 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &status)); | 1264 EXPECT_TRUE(IPC::ReadParam(&msgs[0][0], &iter, &status)); |
| 1263 | 1265 |
| 1264 EXPECT_EQ(1, request_id); | 1266 EXPECT_EQ(1, request_id); |
| 1265 EXPECT_EQ(net::URLRequestStatus::FAILED, status.status()); | 1267 EXPECT_EQ(net::URLRequestStatus::FAILED, status.status()); |
| 1266 EXPECT_EQ(net::ERR_UNKNOWN_URL_SCHEME, status.error()); | 1268 EXPECT_EQ(net::ERR_UNKNOWN_URL_SCHEME, status.error()); |
| 1267 } | 1269 } |
| OLD | NEW |