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

Issue 2441293003: Merge TestResourceHandlers used by two different test fixtures. (Closed)

Created:
4 years, 1 month ago by mmenke
Modified:
4 years, 1 month ago
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge TestResourceHandlers used by two different test fixtures. The MimeSniffingResourceHandler and InterceptingResourceHandler unit tests use two different TestResourceHandlers with very similar feature sets. This CL merges them into single class that supports all the features both text fixtures need. BUG=658760 Committed: https://crrev.com/2b6880fff5eb65c0d7f12fa3b755aaac22bf13a9 Cr-Commit-Position: refs/heads/master@{#427981}

Patch Set 1 #

Patch Set 2 : +Override #

Total comments: 9

Patch Set 3 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -294 lines) Patch
M content/browser/loader/intercepting_resource_handler_unittest.cc View 2 chunks +1 line, -146 lines 0 comments Download
M content/browser/loader/mime_sniffing_resource_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/mime_sniffing_resource_handler_unittest.cc View 11 chunks +48 lines, -147 lines 0 comments Download
A content/browser/loader/test_resource_handler.h View 1 1 chunk +132 lines, -0 lines 0 comments Download
A content/browser/loader/test_resource_handler.cc View 1 2 1 chunk +111 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (16 generated)
mmenke
https://codereview.chromium.org/2441293003/diff/20001/content/browser/loader/test_resource_handler.h File content/browser/loader/test_resource_handler.h (right): https://codereview.chromium.org/2441293003/diff/20001/content/browser/loader/test_resource_handler.h#newcode32 content/browser/loader/test_resource_handler.h:32: class TestResourceHandler : public ResourceHandler { Note that this ...
4 years, 1 month ago (2016-10-25 14:59:06 UTC) #11
Charlie Harrison
Great cleanup! The code is so much more readable without constructors like new Foo(false, true, ...
4 years, 1 month ago (2016-10-26 14:05:19 UTC) #12
mmenke
Going to go ahead and CQ, but if disagree with my responses, I'm happy to ...
4 years, 1 month ago (2016-10-26 15:27:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2441293003/60001
4 years, 1 month ago (2016-10-26 15:28:04 UTC) #16
Charlie Harrison
still lgtm your reasoning makes sense to me.
4 years, 1 month ago (2016-10-26 15:28:55 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/289939)
4 years, 1 month ago (2016-10-26 15:35:03 UTC) #19
mmenke
[+phajdan.jr]: Please review content/test/BUILD.gn. Should we have a wildcard owners rule for that file?
4 years, 1 month ago (2016-10-26 16:25:32 UTC) #21
Paweł Hajdan Jr.
LGTM Feel free to make a change to add wildcard per-file OWNERS.
4 years, 1 month ago (2016-10-27 08:14:44 UTC) #22
mmenke
On 2016/10/27 08:14:44, Paweł Hajdan Jr. wrote: > LGTM > > Feel free to make ...
4 years, 1 month ago (2016-10-27 09:37:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2441293003/60001
4 years, 1 month ago (2016-10-27 09:38:16 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 1 month ago (2016-10-27 09:42:31 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 09:45:27 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2b6880fff5eb65c0d7f12fa3b755aaac22bf13a9
Cr-Commit-Position: refs/heads/master@{#427981}

Powered by Google App Engine
This is Rietveld 408576698