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

Issue 1750943002: [Downloads] Stop keying TestFileErrorInjector off of URLs. (Closed)

Created:
4 years, 9 months ago by asanka
Modified:
4 years, 9 months ago
Reviewers:
svaldez, davidben
CC:
asanka, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Downloads] Stop keying TestFileErrorInjector off of URLs. DownloadFiles don't typically care about URLs. Hence the TestFileErrorInjector shouldn't be using URLs as a key for looking up injected errors. Incidentally, none of the tests using TestFileErrorInjector depend on there being a 1-1 mapping between download URLs and injected errors. Hence, this CL removes the role that URLs were playing in TestFileErrorInjector. R=svaldez@chromium.org, davidben@chromium.org BUG=7648 Committed: https://crrev.com/43b66935f03e974fe5a052fd8382e7611b60ece6 Cr-Commit-Position: refs/heads/master@{#378944}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : Don't forget pop_front() #

Patch Set 6 : Simplify TestFileErrorInjector #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -247 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 8 chunks +29 lines, -50 lines 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 3 4 5 6 chunks +6 lines, -15 lines 0 comments Download
M content/public/test/test_file_error_injector.h View 1 2 3 4 5 4 chunks +34 lines, -54 lines 0 comments Download
M content/public/test/test_file_error_injector.cc View 1 2 3 4 5 17 chunks +72 lines, -128 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (3 generated)
asanka
svaldez: downloads stuffz davidben: content/public/test stuffz The URL is being passed into the DownloadFile solely ...
4 years, 9 months ago (2016-03-01 16:11:38 UTC) #1
svaldez
https://codereview.chromium.org/1750943002/diff/60001/content/public/test/test_file_error_injector.cc File content/public/test/test_file_error_injector.cc (right): https://codereview.chromium.org/1750943002/diff/60001/content/public/test/test_file_error_injector.cc#newcode301 content/public/test/test_file_error_injector.cc:301: injected_errors_.empty() ? kNoOpErrorInfo : injected_errors_.front(); I might be misunderstanding ...
4 years, 9 months ago (2016-03-01 18:01:49 UTC) #2
asanka
https://codereview.chromium.org/1750943002/diff/60001/content/public/test/test_file_error_injector.cc File content/public/test/test_file_error_injector.cc (right): https://codereview.chromium.org/1750943002/diff/60001/content/public/test/test_file_error_injector.cc#newcode301 content/public/test/test_file_error_injector.cc:301: injected_errors_.empty() ? kNoOpErrorInfo : injected_errors_.front(); On 2016/03/01 at 18:01:49, ...
4 years, 9 months ago (2016-03-01 18:58:51 UTC) #4
svaldez
lgtm
4 years, 9 months ago (2016-03-01 19:13:07 UTC) #5
davidben
lgtm
4 years, 9 months ago (2016-03-03 00:39:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1750943002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1750943002/120001
4 years, 9 months ago (2016-03-03 03:53:17 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 9 months ago (2016-03-03 03:58:29 UTC) #9
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 03:59:40 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/43b66935f03e974fe5a052fd8382e7611b60ece6
Cr-Commit-Position: refs/heads/master@{#378944}

Powered by Google App Engine
This is Rietveld 408576698