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

Issue 8399001: Use a DownloadRequestHandle pointer in construction to allow mocking for tests. (Closed)

Created:
9 years, 1 month ago by Randy Smith (Not in Mondays)
Modified:
9 years, 1 month ago
Reviewers:
cbentzel, ahendrickson
CC:
chromium-reviews, achuith+watch_chromium.org, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, rginda+watch_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Use a DownloadRequestHandle pointer in construction to allow mocking for tests. BUG=101214 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108149

Patch Set 1 #

Patch Set 2 : Fix non-virtual destructor in interface. #

Patch Set 3 : Merged to LKGR. #

Patch Set 4 : Fixed compile error. #

Total comments: 13

Patch Set 5 : Merge to TOT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -43 lines) Patch
M chrome/browser/download/download_manager_unittest.cc View 1 2 3 4 5 chunks +7 lines, -5 lines 0 comments Download
M content/browser/download/download_file.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/download/download_file.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_file_manager.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_item.h View 1 2 3 4 5 chunks +9 lines, -6 lines 0 comments Download
M content/browser/download/download_item.cc View 1 2 3 4 5 chunks +11 lines, -5 lines 0 comments Download
M content/browser/download/download_manager.cc View 1 2 3 4 3 chunks +5 lines, -7 lines 0 comments Download
M content/browser/download/download_request_handle.h View 1 2 3 4 3 chunks +32 lines, -13 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Randy Smith (Not in Mondays)
Chris, Andy: Could you take a look at this? Chris for architectural crunchy goodness (or ...
9 years, 1 month ago (2011-10-27 02:25:46 UTC) #1
ahendrickson
LGTM. This doesn't actually create a mock class but only allows one to be created ...
9 years, 1 month ago (2011-10-27 15:00:04 UTC) #2
Randy Smith (Not in Mondays)
On 2011/10/27 15:00:04, ahendrickson wrote: > LGTM. > > This doesn't actually create a mock ...
9 years, 1 month ago (2011-10-27 15:28:44 UTC) #3
cbentzel
I was surprised that there weren't mock versions being used in the tests - is ...
9 years, 1 month ago (2011-10-27 17:20:39 UTC) #4
Randy Smith (Not in Mondays)
On 2011/10/27 17:20:39, cbentzel wrote: > I was surprised that there weren't mock versions being ...
9 years, 1 month ago (2011-10-27 18:07:59 UTC) #5
cbentzel
On Thu, Oct 27, 2011 at 2:08 PM, <rdsmith@chromium.org> wrote: > On 2011/10/27 17:20:39, cbentzel ...
9 years, 1 month ago (2011-10-27 18:10:10 UTC) #6
Randy Smith (Not in Mondays)
Responses to Chris' comments; will wait on his responses for any code changes. http://codereview.chromium.org/8399001/diff/2021/content/browser/download/download_item.cc File ...
9 years, 1 month ago (2011-10-27 18:21:21 UTC) #7
Randy Smith (Not in Mondays)
On 2011/10/27 18:10:10, cbentzel wrote: > On Thu, Oct 27, 2011 at 2:08 PM, <mailto:rdsmith@chromium.org> ...
9 years, 1 month ago (2011-10-27 18:23:41 UTC) #8
cbentzel
LGTM http://codereview.chromium.org/8399001/diff/2021/content/browser/download/download_item.cc File content/browser/download/download_item.cc (right): http://codereview.chromium.org/8399001/diff/2021/content/browser/download/download_item.cc#newcode706 content/browser/download/download_item.cc:706: if (request_handle_.get()) On 2011/10/27 18:21:22, rdsmith wrote: > ...
9 years, 1 month ago (2011-10-27 18:45:34 UTC) #9
Randy Smith (Not in Mondays)
On 2011/10/27 18:45:34, cbentzel wrote: > LGTM > > http://codereview.chromium.org/8399001/diff/2021/content/browser/download/download_item.cc > File content/browser/download/download_item.cc (right): > ...
9 years, 1 month ago (2011-10-27 18:54:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8399001/2021
9 years, 1 month ago (2011-10-31 16:01:18 UTC) #11
commit-bot: I haz the power
Can't apply patch for file content/browser/download/download_file.cc. While running patch -p1 --forward --force; patching file content/browser/download/download_file.cc ...
9 years, 1 month ago (2011-10-31 16:01:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8399001/14001
9 years, 1 month ago (2011-11-01 18:01:17 UTC) #13
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 19:17:31 UTC) #14
Change committed as 108149

Powered by Google App Engine
This is Rietveld 408576698