| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/test/mock_download_manager.h" | 5 #include "content/public/test/mock_download_manager.h" |
| 6 | 6 |
| 7 #include "content/browser/download/byte_stream.h" | 7 #include "content/browser/download/byte_stream.h" |
| 8 #include "content/browser/download/download_create_info.h" | 8 #include "content/browser/download/download_create_info.h" |
| 9 | 9 |
| 10 void PrintTo(const DownloadRequestHandle& params, std::ostream* os) { | 10 void PrintTo(const DownloadRequestHandle& params, std::ostream* os) { |
| 11 } | 11 } |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 MockDownloadManager::MockDownloadManager() {} | 15 MockDownloadManager::MockDownloadManager() {} |
| 16 | 16 |
| 17 MockDownloadManager::~MockDownloadManager() {} | 17 MockDownloadManager::~MockDownloadManager() {} |
| 18 | 18 |
| 19 content::DownloadId MockDownloadManager::StartDownload( | 19 content::DownloadItem* MockDownloadManager::StartDownload( |
| 20 scoped_ptr<DownloadCreateInfo> info, | 20 scoped_ptr<DownloadCreateInfo> info, |
| 21 scoped_ptr<content::ByteStreamReader> stream) { | 21 scoped_ptr<content::ByteStreamReader> stream) { |
| 22 return MockStartDownload(info.get(), stream.get()); | 22 return MockStartDownload(info.get(), stream.get()); |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace content | 25 } // namespace content |
| OLD | NEW |