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

Issue 2495003002: Loading: Factor out ResourceFetcherMockFetchContext (Closed)

Created:
4 years, 1 month ago by Takashi Toyoshima
Modified:
4 years, 1 month ago
Reviewers:
tkent, hiroshige, yhirano
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Loading: Factor out ResourceFetcherMockFetchContext Factor out ResourceFetcherMockFetchContext as MockFetchContext so that multiple unit tests can use it for mocking FetchContext on unit tests. I'm planning to split ResourceFetcherTest.cpp into multiple files so that I can remove undesirable dependencies from the tests to Resource and ResourceClient sub-classes. Once the tests are split into multiple files, they all will use this single header file to have a mocked FetchContext. BUG=655920 Committed: https://crrev.com/162f29c10a4d1e9d037ed42c34eb9460ae20a5bb Cr-Commit-Position: refs/heads/master@{#431849}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : review #8 #

Total comments: 2

Patch Set 4 : enum k prefix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -102 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp View 1 2 3 3 chunks +3 lines, -23 lines 0 comments Download
A third_party/WebKit/Source/core/fetch/MockFetchContext.h View 1 2 3 1 chunk +82 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 1 2 3 18 chunks +35 lines, -79 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
Takashi Toyoshima
ptal
4 years, 1 month ago (2016-11-11 11:30:52 UTC) #3
yhirano
lgtm https://codereview.chromium.org/2495003002/diff/20001/third_party/WebKit/Source/core/fetch/MockFetchContext.h File third_party/WebKit/Source/core/fetch/MockFetchContext.h (right): https://codereview.chromium.org/2495003002/diff/20001/third_party/WebKit/Source/core/fetch/MockFetchContext.h#newcode14 third_party/WebKit/Source/core/fetch/MockFetchContext.h:14: +<memory> https://codereview.chromium.org/2495003002/diff/20001/third_party/WebKit/Source/core/fetch/MockFetchContext.h#newcode34 third_party/WebKit/Source/core/fetch/MockFetchContext.h:34: virtual ~MockFetchContext() {} +override -virtual
4 years, 1 month ago (2016-11-14 04:49:13 UTC) #8
hiroshige
lgtm
4 years, 1 month ago (2016-11-14 05:21:25 UTC) #9
Takashi Toyoshima
https://codereview.chromium.org/2495003002/diff/20001/third_party/WebKit/Source/core/fetch/MockFetchContext.h File third_party/WebKit/Source/core/fetch/MockFetchContext.h (right): https://codereview.chromium.org/2495003002/diff/20001/third_party/WebKit/Source/core/fetch/MockFetchContext.h#newcode14 third_party/WebKit/Source/core/fetch/MockFetchContext.h:14: On 2016/11/14 04:49:13, yhirano wrote: > +<memory> Done. https://codereview.chromium.org/2495003002/diff/20001/third_party/WebKit/Source/core/fetch/MockFetchContext.h#newcode34 ...
4 years, 1 month ago (2016-11-14 05:34:32 UTC) #10
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/2495003002/40001
4 years, 1 month ago (2016-11-14 05:34:51 UTC) #13
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/303181)
4 years, 1 month ago (2016-11-14 05:40:45 UTC) #15
Takashi Toyoshima
+tkent for core/BUILD.gn
4 years, 1 month ago (2016-11-14 05:53:42 UTC) #17
tkent
lgtm https://codereview.chromium.org/2495003002/diff/40001/third_party/WebKit/Source/core/fetch/MockFetchContext.h File third_party/WebKit/Source/core/fetch/MockFetchContext.h (right): https://codereview.chromium.org/2495003002/diff/40001/third_party/WebKit/Source/core/fetch/MockFetchContext.h#newcode29 third_party/WebKit/Source/core/fetch/MockFetchContext.h:29: ShouldLoadNewResource, Please use kCamelCase style for new enum. ...
4 years, 1 month ago (2016-11-14 06:04:11 UTC) #18
Takashi Toyoshima
https://codereview.chromium.org/2495003002/diff/40001/third_party/WebKit/Source/core/fetch/MockFetchContext.h File third_party/WebKit/Source/core/fetch/MockFetchContext.h (right): https://codereview.chromium.org/2495003002/diff/40001/third_party/WebKit/Source/core/fetch/MockFetchContext.h#newcode29 third_party/WebKit/Source/core/fetch/MockFetchContext.h:29: ShouldLoadNewResource, Oh, thank you for this. I didn't notice ...
4 years, 1 month ago (2016-11-14 06:41:15 UTC) #19
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/2495003002/60001
4 years, 1 month ago (2016-11-14 06:42:17 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-14 10:28:34 UTC) #24
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 10:31:45 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/162f29c10a4d1e9d037ed42c34eb9460ae20a5bb
Cr-Commit-Position: refs/heads/master@{#431849}

Powered by Google App Engine
This is Rietveld 408576698