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

Issue 11308035: Fix URLFetcherDownloadProgressTest to work with remote test server (Closed)

Created:
8 years, 1 month ago by ppi
Modified:
8 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ilevy+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, darin-cc_chromium.org, peter+watch_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix URLFetcherDownloadProgressTest to work with remote test server The URLFetcherDownloadProgressTest assumes that the file being downloaded is present on the machine runing the tests. This is not true on Android, where a remote server is used instead. Access to the file before starting the download is not necessary to verify the consistency of data reported in download progress callbacks, which is the aim of the test. The patch checks if the total download size reported in the callback remains constant, consistently with the way in which download progress already is being verified. BUG=161242 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170206

Patch Set 1 #

Patch Set 2 : address pliard remarks #

Total comments: 4

Patch Set 3 : address wtc remarks - fix interface inheritance comments #

Patch Set 4 : address wtc remarks - reintroduce file size checking on nonAndroid platforms #

Patch Set 5 : Fix code formatting (braces) as advised by pliard #

Total comments: 2

Patch Set 6 : Hardcode the file size in the test #

Total comments: 8

Patch Set 7 : address wtc remarks #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -37 lines) Patch
M build/android/gtest_filter/net_unittests_disabled View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 4 5 6 17 chunks +62 lines, -36 lines 1 comment Download

Messages

Total messages: 17 (0 generated)
Philippe
lgtm, thanks Przemek for fixing this!
8 years, 1 month ago (2012-11-15 13:50:38 UTC) #1
kinaba
lgtm, assuming trybots pass. Thanks.
8 years, 1 month ago (2012-11-15 14:47:05 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/11308035/7003
8 years, 1 month ago (2012-11-19 09:27:52 UTC) #3
commit-bot: I haz the power
Presubmit check for 11308035-7003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-19 09:27:58 UTC) #4
ppi
willchan, could you please have a look at this? I need a lgtm from net ...
8 years, 1 month ago (2012-11-19 09:57:46 UTC) #5
willchan no longer on Chromium
Sorry, I'm about to fly to Hawaii. Adding wtc to review or redirect to someone ...
8 years, 1 month ago (2012-11-19 22:29:51 UTC) #6
wtc
Patch set 2 LGTM. I suggest some changes. https://codereview.chromium.org/11308035/diff/7003/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (left): https://codereview.chromium.org/11308035/diff/7003/net/url_request/url_fetcher_impl_unittest.cc#oldcode192 net/url_request/url_fetcher_impl_unittest.cc:192: // ...
8 years, 1 month ago (2012-11-21 00:48:00 UTC) #7
ppi
Thanks for the remarks, wtc. I have addressed the comments as described below. Please let ...
8 years, 1 month ago (2012-11-22 09:57:18 UTC) #8
wtc
Review comments on patch set 5: Hi ppi: it is a holiday in the US ...
8 years, 1 month ago (2012-11-22 18:58:02 UTC) #9
Philippe
On 2012/11/22 18:58:02, wtc wrote: > Review comments on patch set 5: > > Hi ...
8 years, 1 month ago (2012-11-23 09:06:05 UTC) #10
ppi
Thanks for further remarks, wtc. I have followed your suggestion and hardcoded the file size ...
8 years, 1 month ago (2012-11-23 15:42:28 UTC) #11
wtc
Patch set 6 LGTM. ppi: I requested some changes. Because of our time zone difference, ...
8 years ago (2012-11-26 23:19:06 UTC) #12
wtc
On 2012/11/23 09:06:05, Philippe wrote: > > Regarding comments for overridden methods, the style guide ...
8 years ago (2012-11-26 23:32:23 UTC) #13
ppi
Thanks for a careful review, wtc! I have addressed your most recent remarks in patch ...
8 years ago (2012-11-29 13:07:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/11308035/10011
8 years ago (2012-11-29 14:58:03 UTC) #15
commit-bot: I haz the power
Change committed as 170206
8 years ago (2012-11-29 16:59:42 UTC) #16
wtc
8 years ago (2012-11-29 19:35:25 UTC) #17
Message was sent while issue was closed.
Patch set 7 LGTM. Thanks!

https://codereview.chromium.org/11308035/diff/10011/net/url_request/url_fetch...
File net/url_request/url_fetcher_impl_unittest.cc (right):

https://codereview.chromium.org/11308035/diff/10011/net/url_request/url_fetch...
net/url_request/url_fetcher_impl_unittest.cc:474: const URLFetcher* source,
int64 progress, int64 total) {

I agree that |progress| seems more informative than |current|.
The problem with renaming the argument only here is that all
the other OnURLFetchDownloadProgress declarations and
definitions still use the old argument name, so this change
created an inconsistency. Consistency is valued in our
Style Guide.

Can you look into if it is worth the trouble to rename that
argument globally in the source tree? Thanks.

Powered by Google App Engine
This is Rietveld 408576698