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

Unified Diff: chrome/browser/download/chrome_download_manager_delegate_unittest.cc

Issue 2810943003: chrome_download_manager_delegate_unittest.cc: Remove dead code. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/chrome_download_manager_delegate_unittest.cc
diff --git a/chrome/browser/download/chrome_download_manager_delegate_unittest.cc b/chrome/browser/download/chrome_download_manager_delegate_unittest.cc
index d5f20a8002cd0a1bf6999bd08031fce1ec5aa594..65176e36ac8d439a6bb2048efe546dba38e06f60 100644
--- a/chrome/browser/download/chrome_download_manager_delegate_unittest.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate_unittest.cc
@@ -60,29 +60,6 @@ class MockWebContentsDelegate : public content::WebContentsDelegate {
~MockWebContentsDelegate() override {}
};
-// Google Mock action that posts a task to the current message loop that invokes
-// the first argument of the mocked method as a callback. Said argument must be
-// a base::Callback<void(ParamType)>. |result| must be of |ParamType| and is
-// bound as that parameter.
-// Example:
-// class FooClass {
-// public:
-// virtual void Foo(base::Callback<void(bool)> callback);
-// };
-// ...
-// EXPECT_CALL(mock_fooclass_instance, Foo(callback))
-// .WillOnce(ScheduleCallback(false));
-ACTION_P(ScheduleCallback, result) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
- base::Bind(arg0, result));
-}
-
-// Similar to ScheduleCallback, but binds 2 arguments.
-ACTION_P2(ScheduleCallback2, result0, result1) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(arg0, result0, result1));
-}
-
// Subclass of the ChromeDownloadManagerDelegate that uses a mock
// DownloadProtectionService.
class TestChromeDownloadManagerDelegate : public ChromeDownloadManagerDelegate {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698