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

Issue 2560763002: Loading: Use MockResource in MemoryCacheCorrectnessTest.cpp (Closed)

Created:
4 years ago by Takashi Toyoshima
Modified:
4 years ago
Reviewers:
hiroshige, yhirano
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

Loading: Use MockResource in MemoryCacheCorrectnessTest.cpp Now tests in MemoryCacheCorrectnessTest.cpp use ImageResource for testing, but ImageResource will be moved to core/loader/resource/, and core/fetch should not have a dependency to the core/loader/. This patch makes tests in MemoryCacheCorrectnessTest.cpp use MockResource to remove a dependency to the ImageResource. BUG=655920 TEST=webkit_unit_tests --gtest_filer='MemoryCacheCorrectnessTest.*' Committed: https://crrev.com/f19805a9187b34d8368ada79091c9980c7d83fb2 Cr-Commit-Position: refs/heads/master@{#438466}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : review #5 #

Patch Set 4 : [rebase] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -22 lines) Patch
M third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp View 1 2 3 chunks +19 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTestHelper.cpp View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockResource.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockResource.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 19 (11 generated)
Takashi Toyoshima
ptal
4 years ago (2016-12-07 12:08:18 UTC) #3
yhirano
lgtm
4 years ago (2016-12-13 02:27:48 UTC) #4
hiroshige
MemoryCacheCorrectnessTestHelper::resourceFromResourceResponse() contains |if (type == Image)| block (Lines 43--47) that is no longer needed and ...
4 years ago (2016-12-13 08:56:46 UTC) #5
Takashi Toyoshima
https://codereview.chromium.org/2560763002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp (right): https://codereview.chromium.org/2560763002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp#newcode45 third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp:45: Resource* fetchImage() { On 2016/12/13 08:56:45, hiroshige wrote: > ...
4 years ago (2016-12-13 12:52:19 UTC) #6
hiroshige
lgtm.
4 years ago (2016-12-13 17:25:47 UTC) #7
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/2560763002/60001
4 years ago (2016-12-14 08:53:43 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-14 08:58:34 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-14 09:00:32 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f19805a9187b34d8368ada79091c9980c7d83fb2
Cr-Commit-Position: refs/heads/master@{#438466}

Powered by Google App Engine
This is Rietveld 408576698