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

Issue 2637063002: Use MockResource as much as possibler in MemoryCacheCorrectnessTest (Closed)

Created:
3 years, 11 months ago by Takashi Toyoshima
Modified:
3 years, 11 months ago
CC:
chromium-reviews, blink-reviews, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use MockResource as much as possibler in MemoryCacheCorrectnessTest This patch modifies MemoryCacheCorrectnessTest to use MockResource instead of RawResource as much as possible, and to use MockResource* or RawResource* rather than Resource* to hold references so that EXPECT_EQ can force to use a right resource type for testing. Now we have two unit tests that require RawResource to use fetchSynchronously() and willFollowRedirect(). Also, since we do not have any other tests that use MemorycacheCorrectnessTestHelper any more, this patch merges the file to MemoryCacheCorrectnessTest. TEST=webkit_unit_tests --gtest_filter=MemoryCacheCorrectnessTest.\* BUG=655920 Review-Url: https://codereview.chromium.org/2637063002 Cr-Commit-Position: refs/heads/master@{#444664} Committed: https://chromium.googlesource.com/chromium/src/+/7b6c57a4011db4ae08c5b70c9029633796802582

Patch Set 1 #

Total comments: 7

Patch Set 2 : review #8 #9 #

Patch Set 3 : [rebase] #

Total comments: 2

Patch Set 4 : override related style nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -221 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp View 1 23 chunks +125 lines, -62 lines 0 comments Download
D third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTestHelper.h View 1 chunk +0 lines, -53 lines 0 comments Download
D third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTestHelper.cpp View 1 chunk +0 lines, -93 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResource.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResource.cpp View 1 2 chunks +7 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (19 generated)
Takashi Toyoshima
yhirano: PTAL hiroshige: FYI since I left this TODO in a CL that you reviewed
3 years, 11 months ago (2017-01-17 11:14:44 UTC) #5
hiroshige
lgtm with comments. CL title/description: optional: for me the main point of this CL looks ...
3 years, 11 months ago (2017-01-17 19:28:43 UTC) #8
yhirano
lgtm https://codereview.chromium.org/2637063002/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp (right): https://codereview.chromium.org/2637063002/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp#newcode48 third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp:48: const char kResourceURL[] = "http://resource.com/"; constexpr ditto below ...
3 years, 11 months ago (2017-01-18 05:58:37 UTC) #9
Takashi Toyoshima
https://codereview.chromium.org/2637063002/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp (right): https://codereview.chromium.org/2637063002/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp#newcode48 third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp:48: const char kResourceURL[] = "http://resource.com/"; On 2017/01/18 05:58:37, yhirano ...
3 years, 11 months ago (2017-01-19 04:08:20 UTC) #11
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/2637063002/40001
3 years, 11 months ago (2017-01-19 04:14:26 UTC) #15
Takashi Toyoshima
+haraken for BUILD.gn
3 years, 11 months ago (2017-01-19 04:15:16 UTC) #20
kinuko
drive-by lgtm
3 years, 11 months ago (2017-01-19 04:18:37 UTC) #21
haraken
LGTM
3 years, 11 months ago (2017-01-19 04:22:02 UTC) #22
kinuko
https://codereview.chromium.org/2637063002/diff/40001/third_party/WebKit/Source/core/fetch/RawResource.h File third_party/WebKit/Source/core/fetch/RawResource.h (right): https://codereview.chromium.org/2637063002/diff/40001/third_party/WebKit/Source/core/fetch/RawResource.h#newcode65 third_party/WebKit/Source/core/fetch/RawResource.h:65: nit: no empty line needed between overrides from the ...
3 years, 11 months ago (2017-01-19 04:23:24 UTC) #24
Takashi Toyoshima
thanks https://codereview.chromium.org/2637063002/diff/40001/third_party/WebKit/Source/core/fetch/RawResource.h File third_party/WebKit/Source/core/fetch/RawResource.h (right): https://codereview.chromium.org/2637063002/diff/40001/third_party/WebKit/Source/core/fetch/RawResource.h#newcode65 third_party/WebKit/Source/core/fetch/RawResource.h:65: On 2017/01/19 04:23:24, kinuko wrote: > nit: no ...
3 years, 11 months ago (2017-01-19 04:48:34 UTC) #25
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/2637063002/60001
3 years, 11 months ago (2017-01-19 04:49:08 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 06:21:53 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7b6c57a4011db4ae08c5b70c9029...

Powered by Google App Engine
This is Rietveld 408576698