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

Issue 2657793002: Make WebURLLoaderMockFactoryImpl::createURLLoader accept nullptr (Closed)

Created:
3 years, 11 months ago by Takashi Toyoshima
Modified:
3 years, 11 months ago
Reviewers:
kinuko, yhirano
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WebURLLoaderMockFactoryImpl::createURLLoader accept nullptr Now a valid instance of WebURLLoader is required to create a WebURLLoaderMock instance through createURLLoader() so that it can have defaultLoader, a WebURLLoader for fallbacks. But, in most cases, it can work without defaultLoader since many tests are designed to use mocked URLs that would be served from files directly without using defaultLoader. In blink_platform_tests, default Platform::current() does not return a valid instance for createURLLoader(). So allowing nullptr would be useful. BUG=655920 Review-Url: https://codereview.chromium.org/2657793002 Cr-Commit-Position: refs/heads/master@{#446316} Committed: https://chromium.googlesource.com/chromium/src/+/0fa47a4664f18f8f4a2d28408ff4754eb600aaf4

Patch Set 1 #

Patch Set 2 : base change #

Total comments: 2

Patch Set 3 : #12 #

Patch Set 4 : cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -37 lines) Patch
M third_party/WebKit/Source/platform/loader/fetch/FetchTestingPlatformSupport.cpp View 1 2 2 chunks +1 line, -30 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc View 1 2 3 3 chunks +14 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 20 (12 generated)
Takashi Toyoshima
ptal
3 years, 11 months ago (2017-01-25 07:01:44 UTC) #7
yhirano
We talked about moving |url_loader_factory_| out of TestBlinkWebUnitTestSupport. With that change we may be able ...
3 years, 11 months ago (2017-01-25 08:16:04 UTC) #8
Takashi Toyoshima
I tried it today, but I noticed that it makes many webkit_unit_tests fail. So, even ...
3 years, 11 months ago (2017-01-25 10:34:36 UTC) #11
kinuko
ok, lgtm https://codereview.chromium.org/2657793002/diff/40001/third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp File third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp (right): https://codereview.chromium.org/2657793002/diff/40001/third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp#newcode17 third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp:17: void IsFallbackLoaderAvailable(const WebURL& url, I'd name this ...
3 years, 11 months ago (2017-01-25 12:42:13 UTC) #12
Takashi Toyoshima
https://codereview.chromium.org/2657793002/diff/40001/third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp File third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp (right): https://codereview.chromium.org/2657793002/diff/40001/third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp#newcode17 third_party/WebKit/Source/platform/testing/WebURLLoaderMock.cpp:17: void IsFallbackLoaderAvailable(const WebURL& url, On 2017/01/25 12:42:13, kinuko wrote: ...
3 years, 11 months ago (2017-01-26 11:54:24 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/2657793002/80001
3 years, 11 months ago (2017-01-26 11:59:26 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/0fa47a4664f18f8f4a2d28408ff4754eb600aaf4
3 years, 11 months ago (2017-01-26 13:33:05 UTC) #19
yhirano
3 years, 11 months ago (2017-01-27 04:41:41 UTC) #20
Message was sent while issue was closed.
Please fix WebURLLoaderMockFactory::createURLLoader comment.

Powered by Google App Engine
This is Rietveld 408576698