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

Unified Diff: content/public/test/fake_download_item.cc

Issue 2745003003: Moved the FakeDownloadItem to content/public/test. (Closed)
Patch Set: Fix merge issue Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/fake_download_item.cc
diff --git a/chrome/browser/ntp_snippets/fake_download_item.cc b/content/public/test/fake_download_item.cc
similarity index 92%
rename from chrome/browser/ntp_snippets/fake_download_item.cc
rename to content/public/test/fake_download_item.cc
index 39eb275dcdf729f7b35f5ce500ae73e599fcdf08..a415a08bb23f6151f40ca7cb29cff91f959abb86 100644
--- a/chrome/browser/ntp_snippets/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ntp_snippets/fake_download_item.h"
+#include "content/public/test/fake_download_item.h"
#include "base/bind.h"
-using content::DownloadItem;
-
-namespace test {
+namespace content {
FakeDownloadItem::FakeDownloadItem() = default;
@@ -164,9 +162,9 @@ void FakeDownloadItem::ShowDownloadInShell() {
NOTREACHED();
}
-content::DownloadInterruptReason FakeDownloadItem::GetLastReason() const {
+DownloadInterruptReason FakeDownloadItem::GetLastReason() const {
NOTREACHED();
- return content::DownloadInterruptReason();
+ return DownloadInterruptReason();
}
bool FakeDownloadItem::IsPaused() const {
@@ -294,9 +292,9 @@ bool FakeDownloadItem::IsDangerous() const {
return false;
}
-content::DownloadDangerType FakeDownloadItem::GetDangerType() const {
+DownloadDangerType FakeDownloadItem::GetDangerType() const {
NOTREACHED();
- return content::DownloadDangerType();
+ return DownloadDangerType();
}
bool FakeDownloadItem::TimeRemaining(base::TimeDelta* remaining) const {
@@ -371,18 +369,17 @@ base::Time FakeDownloadItem::GetLastAccessTime() const {
return base::Time();
}
-content::BrowserContext* FakeDownloadItem::GetBrowserContext() const {
+BrowserContext* FakeDownloadItem::GetBrowserContext() const {
NOTREACHED();
return nullptr;
}
-content::WebContents* FakeDownloadItem::GetWebContents() const {
+WebContents* FakeDownloadItem::GetWebContents() const {
NOTREACHED();
return nullptr;
}
-void FakeDownloadItem::OnContentCheckCompleted(
- content::DownloadDangerType danger_type) {
+void FakeDownloadItem::OnContentCheckCompleted(DownloadDangerType danger_type) {
NOTREACHED();
}
@@ -407,4 +404,4 @@ std::string FakeDownloadItem::DebugString(bool verbose) const {
return std::string();
}
-} // namespace test
+} // namespace content
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698