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 #
Dependent Patchsets: Messages
Total messages: 11 (3 generated)
|