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

Side by Side Diff: content/public/test/mock_download_manager.cc

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/public/test/mock_download_manager.h ('k') | content/public/test/render_widget_test.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) 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 namespace content { 10 namespace content {
11 11
12 MockDownloadManager::CreateDownloadItemAdapter::CreateDownloadItemAdapter( 12 MockDownloadManager::CreateDownloadItemAdapter::CreateDownloadItemAdapter(
13 const FilePath& current_path, 13 const base::FilePath& current_path,
14 const FilePath& target_path, 14 const base::FilePath& target_path,
15 const std::vector<GURL>& url_chain, 15 const std::vector<GURL>& url_chain,
16 const GURL& referrer_url, 16 const GURL& referrer_url,
17 const base::Time& start_time, 17 const base::Time& start_time,
18 const base::Time& end_time, 18 const base::Time& end_time,
19 int64 received_bytes, 19 int64 received_bytes,
20 int64 total_bytes, 20 int64 total_bytes,
21 DownloadItem::DownloadState state, 21 DownloadItem::DownloadState state,
22 DownloadDangerType danger_type, 22 DownloadDangerType danger_type,
23 DownloadInterruptReason interrupt_reason, 23 DownloadInterruptReason interrupt_reason,
24 bool opened) 24 bool opened)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 MockDownloadManager::~MockDownloadManager() {} 73 MockDownloadManager::~MockDownloadManager() {}
74 74
75 DownloadItem* MockDownloadManager::StartDownload( 75 DownloadItem* MockDownloadManager::StartDownload(
76 scoped_ptr<DownloadCreateInfo> info, 76 scoped_ptr<DownloadCreateInfo> info,
77 scoped_ptr<ByteStreamReader> stream) { 77 scoped_ptr<ByteStreamReader> stream) {
78 return MockStartDownload(info.get(), stream.get()); 78 return MockStartDownload(info.get(), stream.get());
79 } 79 }
80 80
81 DownloadItem* MockDownloadManager::CreateDownloadItem( 81 DownloadItem* MockDownloadManager::CreateDownloadItem(
82 const FilePath& current_path, 82 const base::FilePath& current_path,
83 const FilePath& target_path, 83 const base::FilePath& target_path,
84 const std::vector<GURL>& url_chain, 84 const std::vector<GURL>& url_chain,
85 const GURL& referrer_url, 85 const GURL& referrer_url,
86 const base::Time& start_time, 86 const base::Time& start_time,
87 const base::Time& end_time, 87 const base::Time& end_time,
88 int64 received_bytes, 88 int64 received_bytes,
89 int64 total_bytes, 89 int64 total_bytes,
90 DownloadItem::DownloadState state, 90 DownloadItem::DownloadState state,
91 DownloadDangerType danger_type, 91 DownloadDangerType danger_type,
92 DownloadInterruptReason interrupt_reason, 92 DownloadInterruptReason interrupt_reason,
93 bool opened) { 93 bool opened) {
94 CreateDownloadItemAdapter adapter( 94 CreateDownloadItemAdapter adapter(
95 current_path, target_path, url_chain, referrer_url, start_time, 95 current_path, target_path, url_chain, referrer_url, start_time,
96 end_time, received_bytes, total_bytes, state, danger_type, 96 end_time, received_bytes, total_bytes, state, danger_type,
97 interrupt_reason, opened); 97 interrupt_reason, opened);
98 return MockCreateDownloadItem(adapter); 98 return MockCreateDownloadItem(adapter);
99 } 99 }
100 100
101 } // namespace content 101 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_download_manager.h ('k') | content/public/test/render_widget_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698