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

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

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 | « chrome/test/BUILD.gn ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/fake_download_item.h
diff --git a/chrome/browser/ntp_snippets/fake_download_item.h b/content/public/test/fake_download_item.h
similarity index 88%
rename from chrome/browser/ntp_snippets/fake_download_item.h
rename to content/public/test/fake_download_item.h
index 37e361462f16c4d278045612f56ce1a2c095da02..e11054a86173d9fa3c002bd0952b56f3d5f32061 100644
--- a/chrome/browser/ntp_snippets/fake_download_item.h
+++ b/content/public/test/fake_download_item.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_
-#define CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_
+#ifndef CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
+#define CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
#include <string>
#include <vector>
@@ -17,9 +17,9 @@
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
-namespace test {
+namespace content {
-class FakeDownloadItem : public content::DownloadItem {
+class FakeDownloadItem : public DownloadItem {
public:
FakeDownloadItem();
~FakeDownloadItem() override;
@@ -76,7 +76,7 @@ class FakeDownloadItem : public content::DownloadItem {
void Remove() override;
void OpenDownload() override;
void ShowDownloadInShell() override;
- content::DownloadInterruptReason GetLastReason() const override;
+ DownloadInterruptReason GetLastReason() const override;
bool IsPaused() const override;
bool IsTemporary() const override;
bool CanResume() const override;
@@ -102,7 +102,7 @@ class FakeDownloadItem : public content::DownloadItem {
const std::string& GetHash() const override;
void DeleteFile(const base::Callback<void(bool)>& callback) override;
bool IsDangerous() const override;
- content::DownloadDangerType GetDangerType() const override;
+ DownloadDangerType GetDangerType() const override;
bool TimeRemaining(base::TimeDelta* remaining) const override;
int64_t CurrentSpeed() const override;
int PercentComplete() const override;
@@ -118,10 +118,9 @@ class FakeDownloadItem : public content::DownloadItem {
bool GetAutoOpened() override;
bool GetOpened() const override;
base::Time GetLastAccessTime() const override;
- content::BrowserContext* GetBrowserContext() const override;
- content::WebContents* GetWebContents() const override;
- void OnContentCheckCompleted(
- content::DownloadDangerType danger_type) override;
+ BrowserContext* GetBrowserContext() const override;
+ WebContents* GetWebContents() const override;
+ void OnContentCheckCompleted(DownloadDangerType danger_type) override;
void SetOpenWhenComplete(bool open) override;
void SetOpened(bool opened) override;
void SetLastAccessTime(base::Time time) override;
@@ -150,6 +149,6 @@ class FakeDownloadItem : public content::DownloadItem {
DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem);
};
-} // namespace test
+} // namespace content
-#endif // CHROME_BROWSER_NTP_SNIPPETS_FAKE_DOWNLOAD_ITEM_H_
+#endif // CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698