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

Issue 2683033005: URLLoaderMockFactory: clear MemoryCache in unregisterAllURLs (Closed)

Created:
3 years, 10 months ago by kinuko
Modified:
3 years, 10 months ago
CC:
chromium-reviews, Yoav Weiss, gavinp+prerender_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, Takashi Toyoshima
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

URLLoaderMockFactory: clear MemoryCache in unregisterAllURLs We used to have this in WebURLLoaderMockFactory but it was moved out of the factory when I moved it under platform/tests to avoid layering violations. Now that MemoryCache and WebCache are both in platform/ we can move it back to the MockFactory, which is more convenient for majority of tests. BUG=689341 TBR=peter@chromium.org Review-Url: https://codereview.chromium.org/2683033005 Cr-Commit-Position: refs/heads/master@{#449891} Committed: https://chromium.googlesource.com/chromium/src/+/584e0be921ffc96b1b8b400dece9ed18a6af1931

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -96 lines) Patch
M third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp View 1 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/PingLoaderTest.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/FontResourceTest.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationImageLoaderTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationResourcesLoaderTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/FetchTestingPlatformSupport.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImplTest.cpp View 1 5 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebAssociatedURLLoaderImplTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/MHTMLTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/PrerenderingTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ProgrammaticScrollTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ViewportTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebSearchableFormDataTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebURLLoaderMockFactory.h View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
kinuko
Minor cleanup; can either of you review?
3 years, 10 months ago (2017-02-09 15:59:09 UTC) #5
dcheng
lgtm with a random thought https://codereview.chromium.org/2683033005/diff/1/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h File third_party/WebKit/public/platform/WebURLLoaderMockFactory.h (right): https://codereview.chromium.org/2683033005/diff/1/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h#newcode53 third_party/WebKit/public/platform/WebURLLoaderMockFactory.h:53: virtual void unregisterAllURLs() = ...
3 years, 10 months ago (2017-02-09 19:42:12 UTC) #8
kinuko
On 2017/02/09 19:42:12, dcheng wrote: > lgtm with a random thought > > https://codereview.chromium.org/2683033005/diff/1/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h > ...
3 years, 10 months ago (2017-02-10 00:01:19 UTC) #9
kinuko
peter@: can you review changes in modules/notifications? (Minor test-only changes)
3 years, 10 months ago (2017-02-10 00:04:52 UTC) #11
Nate Chapin
LGTM w/nit https://codereview.chromium.org/2683033005/diff/20001/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc File third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc (right): https://codereview.chromium.org/2683033005/diff/20001/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc#newcode80 third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc:80: if (cache) memoryCache() shouldn't ever return null.
3 years, 10 months ago (2017-02-10 22:41:11 UTC) #12
kinuko
https://codereview.chromium.org/2683033005/diff/20001/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc File third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc (right): https://codereview.chromium.org/2683033005/diff/20001/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc#newcode80 third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc:80: if (cache) On 2017/02/10 22:41:11, Nate Chapin wrote: > ...
3 years, 10 months ago (2017-02-12 12:48:41 UTC) #18
kinuko
Peter: I'm TBR-ing this as the changes are mechanical & test-only. Please feel free to ...
3 years, 10 months ago (2017-02-12 12:50:52 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/2683033005/40001
3 years, 10 months ago (2017-02-12 12:51:12 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-12 13:04:03 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/584e0be921ffc96b1b8b400dece9...

Powered by Google App Engine
This is Rietveld 408576698