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

Issue 2654933003: platform/testing/{URL|Unit}TestHelpers improvements (Closed)

Created:
3 years, 11 months ago by Takashi Toyoshima
Modified:
3 years, 10 months ago
Reviewers:
kinuko, haraken
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, kinuko+watch, rwlbuis, Yoav Weiss, krit, drott+blinkwatch_chromium.org, awdf+watch_chromium.org, Justin Novosad, Rik, gavinp+loader_chromium.org, loading-reviews_chromium.org, ajuma+watch_chromium.org, Peter Beverloo, jbroman, blink-reviews, pdr+graphicswatchlist_chromium.org, Nate Chapin, danakj+watch_chromium.org, tyoshino+watch_chromium.org, gavinp+prerender_chromium.org, f(malita), Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

platform/testing/{URL|Unit}TestHelpers improvements URLTestHelpers assumed that the test directory is web/tests/data. But for blink_platform_tests, we didn't have a dependency to web/tests/data in build rules, and should use platform/testing/data instead of web/tests/data. This patch revises URLTestHelpers so that it works without knowing where the test directory is, and adds interfaces that provide test directories for web and platform. Also this patch does some refactoring changes against caller side files so that these interface changes should not affect so much. Some tests that directly had test directory path literals are fixed to use UnitTestHelpers to obtain fullpaths for test files. BUG=655920 Review-Url: https://codereview.chromium.org/2654933003 Cr-Commit-Position: refs/heads/master@{#448227} Committed: https://chromium.googlesource.com/chromium/src/+/8fabb1af2315f0b6fc685118b7c25b726bf3f94e

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 39

Patch Set 3 : filepath, c_str #

Patch Set 4 : merge master + typo fix #

Total comments: 1

Patch Set 5 : baseURL bug #

Total comments: 1

Patch Set 6 : windows build fix #

Total comments: 6

Patch Set 7 : review #30 #

Patch Set 8 : mechanical merge master & cl format #

Total comments: 2

Patch Set 9 : header changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+590 lines, -752 lines) Patch
M third_party/WebKit/Source/core/loader/PingLoaderTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 4 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationImageLoaderTest.cpp View 1 3 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationResourcesLoaderTest.cpp View 1 2 3 4 5 6 7 3 chunks +14 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontPlatformDataTest.cpp View 3 chunks +8 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontTest.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp View 1 2 3 4 5 6 7 13 chunks +28 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/URLTestHelpers.h View 1 2 3 4 5 6 2 chunks +18 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/URLTestHelpers.cpp View 1 2 3 4 5 6 7 4 chunks +21 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/UnitTestHelpers.h View 1 2 3 4 5 6 1 chunk +20 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp View 1 2 3 4 5 3 chunks +36 lines, -15 lines 0 comments Download
A third_party/WebKit/Source/platform/testing/data/white-1x1.png View Binary file 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp View 1 2 3 4 5 6 7 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImplTest.cpp View 1 2 3 4 5 6 7 7 chunks +24 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/web/WebAssociatedURLLoaderImplTest.cpp View 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp View 1 2 3 4 5 6 7 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 1 2 3 4 5 6 7 4 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 3 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/MHTMLTest.cpp View 1 2 3 4 5 6 7 4 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/PrerenderingTest.cpp View 1 2 3 4 5 6 7 4 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ProgrammaticScrollTest.cpp View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 2 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ViewportTest.cpp View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 4 5 6 7 6 chunks +16 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp View 1 2 5 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentTest.cpp View 1 4 chunks +28 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 8 chunks +24 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 16 chunks +33 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebImageTest.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 4 5 6 7 9 chunks +18 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 2 3 4 5 6 7 20 chunks +29 lines, -58 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebSearchableFormDataTest.cpp View 1 2 4 chunks +14 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 98 chunks +127 lines, -289 lines 0 comments Download

Messages

Total messages: 39 (27 generated)
Takashi Toyoshima
ptal. This is a patch to remove my TODO in platform/BUILD.gn. URLTestHelpers and URLTestHelpers are ...
3 years, 11 months ago (2017-01-26 08:15:55 UTC) #10
kinuko
https://codereview.chromium.org/2654933003/diff/20001/third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp File third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp (right): https://codereview.chromium.org/2654933003/diff/20001/third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp#newcode205 third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp:205: class ScopedRegisteredURL { A generalized form of this class ...
3 years, 11 months ago (2017-01-26 09:32:41 UTC) #13
Takashi Toyoshima
try failed on some tests, but it is passing on local host. I'd re-run trybots, ...
3 years, 11 months ago (2017-01-26 10:57:58 UTC) #14
Takashi Toyoshima
I found the reason of errors. I'd upload revised one. https://codereview.chromium.org/2654933003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2654933003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode213 ...
3 years, 11 months ago (2017-01-26 11:36:02 UTC) #19
Takashi Toyoshima
https://codereview.chromium.org/2654933003/diff/80001/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp File third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp (right): https://codereview.chromium.org/2654933003/diff/80001/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp#newcode95 third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp:95: .Append(relativePath)); Hum... this should be AppendASCII() to compile on ...
3 years, 11 months ago (2017-01-26 12:48:21 UTC) #24
Takashi Toyoshima
Patch Set 6 passed the CQ dryrun. Could you take another look?
3 years, 10 months ago (2017-01-27 09:05:02 UTC) #29
kinuko
lgtm https://codereview.chromium.org/2654933003/diff/100001/third_party/WebKit/Source/platform/testing/URLTestHelpers.h File third_party/WebKit/Source/platform/testing/URLTestHelpers.h (right): https://codereview.chromium.org/2654933003/diff/100001/third_party/WebKit/Source/platform/testing/URLTestHelpers.h#newcode53 third_party/WebKit/Source/platform/testing/URLTestHelpers.h:53: // |basePath| or |filePath| could be obtained though ...
3 years, 10 months ago (2017-01-27 15:50:40 UTC) #30
haraken
LGTM
3 years, 10 months ago (2017-01-27 18:17:48 UTC) #31
Takashi Toyoshima
https://codereview.chromium.org/2654933003/diff/100001/third_party/WebKit/Source/platform/testing/URLTestHelpers.h File third_party/WebKit/Source/platform/testing/URLTestHelpers.h (right): https://codereview.chromium.org/2654933003/diff/100001/third_party/WebKit/Source/platform/testing/URLTestHelpers.h#newcode53 third_party/WebKit/Source/platform/testing/URLTestHelpers.h:53: // |basePath| or |filePath| could be obtained though UnitTestHelpers. ...
3 years, 10 months ago (2017-02-06 08:14:55 UTC) #32
Takashi Toyoshima
will apply some minor changes that were found by new "cl format" that forces to ...
3 years, 10 months ago (2017-02-06 09:13:42 UTC) #33
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/2654933003/160001
3 years, 10 months ago (2017-02-06 09:15:53 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 11:04:57 UTC) #39
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/8fabb1af2315f0b6fc685118b7c2...

Powered by Google App Engine
This is Rietveld 408576698