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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/browser/frame_host/debug_urls.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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); 152 MOCK_METHOD0(GetDownloadManager, DownloadManager*());
153 MOCK_CONST_METHOD0(IsPaused, bool()); 153 MOCK_CONST_METHOD0(IsPaused, bool());
154 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); 154 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool());
155 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); 155 MOCK_METHOD1(SetOpenWhenComplete, void(bool));
156 MOCK_CONST_METHOD0(GetFileExternallyRemoved, bool()); 156 MOCK_CONST_METHOD0(GetFileExternallyRemoved, bool());
157 MOCK_CONST_METHOD0(GetDangerType, DownloadDangerType()); 157 MOCK_CONST_METHOD0(GetDangerType, DownloadDangerType());
158 MOCK_CONST_METHOD0(IsDangerous, bool()); 158 MOCK_CONST_METHOD0(IsDangerous, bool());
159 MOCK_METHOD0(GetAutoOpened, bool()); 159 MOCK_METHOD0(GetAutoOpened, bool());
160 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&()); 160 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&());
161 MOCK_CONST_METHOD0(HasUserGesture, bool()); 161 MOCK_CONST_METHOD0(HasUserGesture, bool());
162 MOCK_CONST_METHOD0(GetTransitionType, PageTransition()); 162 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition());
163 MOCK_CONST_METHOD0(IsTemporary, bool()); 163 MOCK_CONST_METHOD0(IsTemporary, bool());
164 MOCK_METHOD1(SetIsTemporary, void(bool)); 164 MOCK_METHOD1(SetIsTemporary, void(bool));
165 MOCK_METHOD1(SetOpened, void(bool)); 165 MOCK_METHOD1(SetOpened, void(bool));
166 MOCK_CONST_METHOD0(GetOpened, bool()); 166 MOCK_CONST_METHOD0(GetOpened, bool());
167 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); 167 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&());
168 MOCK_CONST_METHOD0(GetETag, const std::string&()); 168 MOCK_CONST_METHOD0(GetETag, const std::string&());
169 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); 169 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
170 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 170 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
171 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 171 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
172 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); 172 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath());
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 .WillOnce(Return()); 680 .WillOnce(Return());
681 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 681 EXPECT_CALL(GetMockDownloadItem(3), Remove())
682 .Times(0); 682 .Times(0);
683 683
684 download_manager_->RemoveAllDownloads(); 684 download_manager_->RemoveAllDownloads();
685 // 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
686 // result in them being removed from the DownloadManager list. 686 // result in them being removed from the DownloadManager list.
687 } 687 }
688 688
689 } // namespace content 689 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/browser/frame_host/debug_urls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698