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

Issue 12047039: download: Remove DownloadManager::MockDownloadOpenForTesting (Closed)

Created:
7 years, 11 months ago by hashimoto
Modified:
7 years, 10 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

download: Remove DownloadManager::MockDownloadOpenForTesting Rename DownloadTestFileChooserObserver to DownloadTestFileActivityObserver. Implement empty MockDownloadManagerDelegate::OpenDownload in download_test_file_chooser_observer.cc BUG=171224 TEST=browser_test --gtest_filter="Download*Open" TBR=benjhayden@chromium.org for chrome/browser/extensions/api/downloads, jcivelli@chromium.org for content/public/test, ben@chromium.org for chrome/browser/ui Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179627

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename to DownloadTestFileActivityObserver #

Total comments: 2

Patch Set 3 : Rebase and comment fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -189 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 6 chunks +8 lines, -10 lines 0 comments Download
A + chrome/browser/download/download_test_file_activity_observer.h View 1 2 2 chunks +13 lines, -15 lines 0 comments Download
A + chrome/browser/download/download_test_file_activity_observer.cc View 1 3 chunks +13 lines, -16 lines 0 comments Download
D chrome/browser/download/download_test_file_chooser_observer.h View 1 1 chunk +0 lines, -42 lines 0 comments Download
M chrome/browser/download/download_test_file_chooser_observer.cc View 1 1 chunk +0 lines, -80 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_unittest.cc View 1 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_close_browsertest.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 chunks +2 lines, -7 lines 0 comments Download
M content/public/browser/download_manager.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/test/mock_download_manager.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
hashimoto
Please review
7 years, 11 months ago (2013-01-23 10:10:57 UTC) #1
Randy Smith (Not in Mondays)
https://codereview.chromium.org/12047039/diff/1/chrome/browser/download/download_test_file_chooser_observer.cc File chrome/browser/download/download_test_file_chooser_observer.cc (right): https://codereview.chromium.org/12047039/diff/1/chrome/browser/download/download_test_file_chooser_observer.cc#newcode53 chrome/browser/download/download_test_file_chooser_observer.cc:53: virtual void OpenDownload(content::DownloadItem* item) OVERRIDE {} Is this class ...
7 years, 11 months ago (2013-01-23 21:23:34 UTC) #2
hashimoto
https://codereview.chromium.org/12047039/diff/1/chrome/browser/download/download_test_file_chooser_observer.cc File chrome/browser/download/download_test_file_chooser_observer.cc (right): https://codereview.chromium.org/12047039/diff/1/chrome/browser/download/download_test_file_chooser_observer.cc#newcode53 chrome/browser/download/download_test_file_chooser_observer.cc:53: virtual void OpenDownload(content::DownloadItem* item) OVERRIDE {} On 2013/01/23 21:23:34, ...
7 years, 11 months ago (2013-01-24 05:52:30 UTC) #3
Randy Smith (Not in Mondays)
On 2013/01/24 05:52:30, hashimoto wrote: > https://codereview.chromium.org/12047039/diff/1/chrome/browser/download/download_test_file_chooser_observer.cc > File chrome/browser/download/download_test_file_chooser_observer.cc (right): > > https://codereview.chromium.org/12047039/diff/1/chrome/browser/download/download_test_file_chooser_observer.cc#newcode53 > ...
7 years, 11 months ago (2013-01-24 18:32:57 UTC) #4
hashimoto
New patch set. PTAL. DownloadTestFileChooserObserver is renamed to DownloadTestFileActivityObserver. internal::MockFileChooserDownloadManagerDelegate becomes a internal class of ...
7 years, 11 months ago (2013-01-25 04:10:25 UTC) #5
Randy Smith (Not in Mondays)
LGTM with comment tweak below. Thanks for doing this! https://codereview.chromium.org/12047039/diff/11001/chrome/browser/download/download_test_file_activity_observer.h File chrome/browser/download/download_test_file_activity_observer.h (right): https://codereview.chromium.org/12047039/diff/11001/chrome/browser/download/download_test_file_activity_observer.h#newcode12 chrome/browser/download/download_test_file_activity_observer.h:12: ...
7 years, 11 months ago (2013-01-25 18:08:14 UTC) #6
hashimoto
https://codereview.chromium.org/12047039/diff/11001/chrome/browser/download/download_test_file_activity_observer.h File chrome/browser/download/download_test_file_activity_observer.h (right): https://codereview.chromium.org/12047039/diff/11001/chrome/browser/download/download_test_file_activity_observer.h#newcode12 chrome/browser/download/download_test_file_activity_observer.h:12: // Observes and overrides file related activity for a ...
7 years, 10 months ago (2013-01-30 10:18:58 UTC) #7
hashimoto
TBR-ing owner of each directory for simple renaming changes: benjhayden@chromium.org for chrome/browser/extensions/api/downloads, jcivelli@chromium.org for content/public/test, ...
7 years, 10 months ago (2013-01-30 10:22:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/12047039/18001
7 years, 10 months ago (2013-01-30 10:23:24 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-01-30 13:55:20 UTC) #10
Message was sent while issue was closed.
Change committed as 179627

Powered by Google App Engine
This is Rietveld 408576698