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

Unified Diff: chrome/browser/android/download/mock_download_controller_android.h

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix failing tests/bugs Created 4 years, 6 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
Index: chrome/browser/android/download/mock_download_controller_android.h
diff --git a/chrome/browser/android/download/mock_download_controller_android.h b/chrome/browser/android/download/mock_download_controller_android.h
deleted file mode 100644
index 3c530560f42136bf43f3cebf32bd3b3c8a463867..0000000000000000000000000000000000000000
--- a/chrome/browser/android/download/mock_download_controller_android.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_
-#define CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/memory/singleton.h"
-#include "content/public/browser/android/download_controller_android.h"
-
-namespace content {
-class DownloadItem;
-class WebContents;
-} // namespace content
-
-namespace chrome {
-namespace android {
-
-// Mock implementation of the DownloadControllerAndroid.
-class MockDownloadControllerAndroid
- : public content::DownloadControllerAndroid {
- public:
- MockDownloadControllerAndroid();
- ~MockDownloadControllerAndroid() override;
-
- // DownloadControllerAndroid implementation.
- void CreateGETDownload(int render_process_id, int render_view_id,
- int request_id, bool mustDownload) override;
- void OnDownloadStarted(content::DownloadItem* download_item) override;
- void StartContextMenuDownload(
- const content::ContextMenuParams& params,
- content::WebContents* web_contents,
- bool is_link, const std::string& extra_headers) override;
- void DangerousDownloadValidated(content::WebContents* web_contents,
- const std::string& download_guid,
- bool accept) override;
- void AcquireFileAccessPermission(
- content::WebContents* web_contents,
- const AcquireFileAccessPermissionCallback& callback) override;
- void SetApproveFileAccessRequestForTesting(bool approve) override;
-
- private:
- bool approve_file_access_request_;
- DISALLOW_COPY_AND_ASSIGN(MockDownloadControllerAndroid);
-};
-
-} // namespace android
-} // namespace chrome
-
-
-#endif // CHROME_BROWSER_ANDROID_DOWNLOAD_MOCK_DOWNLOAD_CONTROLLER_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698