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

Issue 17315009: [Downloads] Add more browsertests for resumption. (Closed)

Created:
7 years, 6 months ago by asanka
Modified:
7 years, 5 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, darin-cc_chromium.org, jam, joi+watch-content_chromium.org
Visibility:
Public.

Description

[Downloads] Add more browser tests for resumption. During downloads resumption, most of the legwork is done by the core downloads code in content/browser/downloads. However, the chrome/browser/download is also responsible for download filename determination as well as prompting the user when necessary. These are browser tests for testing resumption at the chrome/ level. DownloadItemImpl modified to preserve the download interrupt reason when resuming and also making sure that OnDownloadUpdated() notifications are sent when the value of DownloadItem::CanResume() changes. TBR=joi BUG=7648 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210052

Patch Set 1 : #

Total comments: 9

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Address comments and break off content/ part of CL #

Patch Set 4 : Merge with r207865 #

Patch Set 5 : Merge with r209222 #

Patch Set 6 : Serialize alls to TestFileErrorInjector accounting methods. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -1 line) Patch
M chrome/browser/download/download_browsertest.cc View 1 5 chunks +256 lines, -0 lines 0 comments Download
M content/public/test/test_file_error_injector.cc View 1 2 3 4 5 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
asanka
PTAL?
7 years, 6 months ago (2013-06-19 19:20:14 UTC) #1
Randy Smith (Not in Mondays)
https://codereview.chromium.org/17315009/diff/2001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): https://codereview.chromium.org/17315009/diff/2001/chrome/browser/download/download_browsertest.cc#newcode3105 chrome/browser/download/download_browsertest.cc:3105: // resumption. nit: Description doesn't differentiate from previous test. ...
7 years, 6 months ago (2013-06-19 21:46:21 UTC) #2
asanka
https://codereview.chromium.org/17315009/diff/2001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): https://codereview.chromium.org/17315009/diff/2001/chrome/browser/download/download_browsertest.cc#newcode3105 chrome/browser/download/download_browsertest.cc:3105: // resumption. On 2013/06/19 21:46:21, rdsmith wrote: > nit: ...
7 years, 6 months ago (2013-06-20 20:04:01 UTC) #3
Randy Smith (Not in Mondays)
On 2013/06/20 20:04:01, asanka wrote: > https://codereview.chromium.org/17315009/diff/2001/chrome/browser/download/download_browsertest.cc > File chrome/browser/download/download_browsertest.cc (right): > > https://codereview.chromium.org/17315009/diff/2001/chrome/browser/download/download_browsertest.cc#newcode3105 > ...
7 years, 6 months ago (2013-06-20 20:09:23 UTC) #4
asanka
On 2013/06/20 20:09:23, rdsmith wrote: > On 2013/06/20 20:04:01, asanka wrote: > > > https://codereview.chromium.org/17315009/diff/2001/chrome/browser/download/download_browsertest.cc ...
7 years, 6 months ago (2013-06-20 20:24:18 UTC) #5
Randy Smith (Not in Mondays)
https://codereview.chromium.org/17315009/diff/2001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/17315009/diff/2001/content/browser/download/download_item_impl.cc#newcode1360 content/browser/download/download_item_impl.cc:1360: if (download_file_.get()) { On 2013/06/20 20:04:01, asanka wrote: > ...
7 years, 6 months ago (2013-06-20 20:55:22 UTC) #6
asanka
https://codereview.chromium.org/17315009/diff/2001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/17315009/diff/2001/content/browser/download/download_item_impl.cc#newcode1360 content/browser/download/download_item_impl.cc:1360: if (download_file_.get()) { On 2013/06/20 20:55:22, rdsmith wrote: > ...
7 years, 6 months ago (2013-06-20 22:40:13 UTC) #7
Randy Smith (Not in Mondays)
LGTM.
7 years, 6 months ago (2013-06-21 01:20:30 UTC) #8
asanka
On 2013/06/21 01:20:30, rdsmith wrote: > LGTM. Randy: I made a change to test_file_error_injector to ...
7 years, 5 months ago (2013-07-03 15:32:57 UTC) #9
Randy Smith (Not in Mondays)
LGTM (but pay attention to the tests; this is the kind of thing that could ...
7 years, 5 months ago (2013-07-03 15:43:02 UTC) #10
asanka
On 2013/07/03 15:43:02, rdsmith wrote: > LGTM (but pay attention to the tests; this is ...
7 years, 5 months ago (2013-07-03 16:16:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/17315009/37001
7 years, 5 months ago (2013-07-03 17:38:09 UTC) #12
commit-bot: I haz the power
Change committed as 210052
7 years, 5 months ago (2013-07-03 22:23:53 UTC) #13
Jói
7 years, 5 months ago (2013-07-04 09:11:41 UTC) #14
Message was sent while issue was closed.
LGTM for //content/public.

Powered by Google App Engine
This is Rietveld 408576698