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

Side by Side Diff: content/browser/download/download_manager_impl_unittest.cc

Issue 15011006: Remove DownloadItem::GetUserVerifiedFilePath() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r201294 Created 7 years, 7 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/browser/download/download_item_impl.cc ('k') | content/public/browser/download_item.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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 MOCK_METHOD1(SetIsTemporary, void(bool)); 158 MOCK_METHOD1(SetIsTemporary, void(bool));
159 MOCK_METHOD1(SetOpened, void(bool)); 159 MOCK_METHOD1(SetOpened, void(bool));
160 MOCK_CONST_METHOD0(GetOpened, bool()); 160 MOCK_CONST_METHOD0(GetOpened, bool());
161 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); 161 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&());
162 MOCK_CONST_METHOD0(GetETag, const std::string&()); 162 MOCK_CONST_METHOD0(GetETag, const std::string&());
163 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); 163 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
164 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 164 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
165 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 165 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
166 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); 166 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath());
167 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 167 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
168 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, base::FilePath());
169 MOCK_METHOD0(NotifyRemoved, void()); 168 MOCK_METHOD0(NotifyRemoved, void());
170 // May be called when vlog is on. 169 // May be called when vlog is on.
171 virtual std::string DebugString(bool verbose) const OVERRIDE { 170 virtual std::string DebugString(bool verbose) const OVERRIDE {
172 return std::string(); 171 return std::string();
173 } 172 }
174 }; 173 };
175 174
176 class MockDownloadManagerDelegate : public DownloadManagerDelegate { 175 class MockDownloadManagerDelegate : public DownloadManagerDelegate {
177 public: 176 public:
178 MockDownloadManagerDelegate(); 177 MockDownloadManagerDelegate();
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 .WillOnce(Return()); 680 .WillOnce(Return());
682 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 681 EXPECT_CALL(GetMockDownloadItem(3), Remove())
683 .Times(0); 682 .Times(0);
684 683
685 download_manager_->RemoveAllDownloads(); 684 download_manager_->RemoveAllDownloads();
686 // Because we're mocking the download item, the Remove call doesn't 685 // Because we're mocking the download item, the Remove call doesn't
687 // result in them being removed from the DownloadManager list. 686 // result in them being removed from the DownloadManager list.
688 } 687 }
689 688
690 } // namespace content 689 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/public/browser/download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698