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

Issue 1257343003: [LoaderTest] Add unit tests for Document/WorkerThreadableLoader (Closed)

Created:
5 years, 4 months ago by hiroshige
Modified:
4 years, 9 months ago
CC:
blink-reviews, gavinp+loader_chromium.org, Nate Chapin, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Loader] Add unit tests for Document/WorkerThreadableLoader This CL tests how ThreadableLoaderClient methods are called from DocumentThreadableLoader and WorkerThreadableLoader, including the cases where ThreadableLoader is canceled or destructed in the ThreadableLoaderClient method calls. This CL ignores a presubmit warning: "You should probably be using one of the FrameTestHelpers::(re)load* functions instead of serveAsynchronousMockedRequests()" in ThreadableLoaderTest.cpp, because this is not a frame loading test. BUG=532364, 515850 Committed: https://crrev.com/c273884cebc427b90d7b989c1210ebb0ffeebfe3 Cr-Commit-Position: refs/heads/master@{#382156}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Adding more tests. #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Add WorkerThreadableLoaderTest #

Patch Set 7 : Revert ThreadableLoaderClientWrapper.h changes #

Patch Set 8 : Fix test failure in WorkerThreadableLoaderTest.ClearInDidFailInStart #

Patch Set 9 : Rebase. #

Patch Set 10 : Rebase. #

Patch Set 11 : Rebase. #

Patch Set 12 : Rebase. #

Patch Set 13 : Add more tests - temp. #

Patch Set 14 : Fix rebase error. #

Patch Set 15 : Add more tests on ManualRedirect. #

Patch Set 16 : Add checks of URLs. #

Patch Set 17 : Preparing to rebase... #

Patch Set 18 : Rebase. #

Patch Set 19 : Rebase. #

Patch Set 20 : Bot failure fix. #

Patch Set 21 : Set LoadTiming #

Patch Set 22 : Rebase #

Patch Set 23 : #

Patch Set 24 : Rebase. #

Patch Set 25 : Rebase. #

Patch Set 26 : Rebase, #

Total comments: 29

Patch Set 27 : Rebase, Reflect comments, move more common code to Helper.h #

Patch Set 28 : Rebase. #

Patch Set 29 : Reflect comments #

Patch Set 30 : Rebase. #

Patch Set 31 : #

Patch Set 32 : Rebase. #

Patch Set 33 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+869 lines, -254 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +836 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 chunks +3 lines, -151 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 6 chunks +28 lines, -103 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/fox-null-terminated.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Binary file 0 comments Download

Dependent Patchsets:

Messages

Total messages: 109 (60 generated)
hiroshige
PTAL.
5 years, 4 months ago (2015-08-05 16:00:27 UTC) #2
tyoshino (SeeGerritForStatus)
Please wrap the CL description to 80 col or less before commit. https://www.chromium.org/developers/contributing-code#TOC-Change-List-Description-Structured-Elements
5 years, 4 months ago (2015-08-06 05:17:53 UTC) #3
hiroshige
Done > wrap. Also I added tests for WorkerThreadableLoader in Patch Set 6.
5 years, 4 months ago (2015-08-11 08:09:13 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/260001
5 years, 3 months ago (2015-09-15 13:38:46 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/107248)
5 years, 3 months ago (2015-09-15 14:55:15 UTC) #8
tyoshino (SeeGerritForStatus)
Thanks for writing the tests, and sorry for long delay on review and refactoring work. ...
4 years, 10 months ago (2016-02-18 09:30:13 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/340001
4 years, 10 months ago (2016-02-22 22:50:37 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/160260) linux_chromium_chromeos_ozone_rel_ng on ...
4 years, 10 months ago (2016-02-22 23:18:09 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/360001
4 years, 10 months ago (2016-02-23 02:21:24 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/184025)
4 years, 10 months ago (2016-02-23 03:12:48 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/380001
4 years, 10 months ago (2016-02-23 18:46:25 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/178168)
4 years, 10 months ago (2016-02-23 20:21:43 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/400001
4 years, 10 months ago (2016-02-23 20:57:55 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/184569)
4 years, 10 months ago (2016-02-23 23:29:55 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/420001
4 years, 10 months ago (2016-02-24 20:49:15 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/185247)
4 years, 10 months ago (2016-02-24 22:00:17 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/420001
4 years, 10 months ago (2016-02-24 22:07:43 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/440001
4 years, 10 months ago (2016-02-24 23:49:01 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/130241) linux_chromium_compile_dbg_32_ng on ...
4 years, 10 months ago (2016-02-25 00:16:37 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/660001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/660001
4 years, 10 months ago (2016-02-26 21:41:53 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/680001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/680001
4 years, 10 months ago (2016-02-26 22:36:08 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/700001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/700001
4 years, 10 months ago (2016-02-26 23:09:50 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/740001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/740001
4 years, 9 months ago (2016-02-27 00:33:27 UTC) #60
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-27 02:40:23 UTC) #62
hiroshige
PTAL. Test failures on Mac was solved by https://codereview.chromium.org/1743783002/. Test failures on asan bots was ...
4 years, 9 months ago (2016-02-29 16:33:28 UTC) #63
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp File third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp (left): https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp#oldcode11 third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp:11: #include "core/workers/WorkerThreadStartupData.h" WorkerThreadStartupData is used in the code that ...
4 years, 9 months ago (2016-03-02 07:57:59 UTC) #64
tyoshino (SeeGerritForStatus)
almost lg nice coverage! https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode10 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:10: #include "core/loader/ThreadableLoaderClient.h" also include ThreadableLoader.h ...
4 years, 9 months ago (2016-03-03 14:43:20 UTC) #65
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/780001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/780001
4 years, 9 months ago (2016-03-04 01:52:46 UTC) #68
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-04 03:28:20 UTC) #70
hiroshige
+japhet@, could you take a look? https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode10 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:10: #include "core/loader/ThreadableLoaderClient.h" On ...
4 years, 9 months ago (2016-03-08 23:40:59 UTC) #72
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode10 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:10: #include "core/loader/ThreadableLoaderClient.h" On 2016/03/08 at 23:40:59, hiroshige wrote: ...
4 years, 9 months ago (2016-03-09 06:26:12 UTC) #73
hiroshige
Oh, I forgot adding +ksakamoto@ as a reviewer. ksakamoto@, could you take a look at ...
4 years, 9 months ago (2016-03-09 19:14:28 UTC) #75
Kunihiko Sakamoto
https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode559 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:559: EXPECT_CALL(*client(), didReceiveResourceTiming(_)).Times(AtMost(1)); hiroshige@ is correct, WorkerThreadableLoader doesn't call this. ...
4 years, 9 months ago (2016-03-10 02:17:31 UTC) #76
hiroshige
https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode559 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:559: EXPECT_CALL(*client(), didReceiveResourceTiming(_)).Times(AtMost(1)); On 2016/03/10 02:17:31, Kunihiko Sakamoto wrote: > ...
4 years, 9 months ago (2016-03-10 03:20:09 UTC) #77
hiroshige
https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp File third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp (right): https://codereview.chromium.org/1257343003/diff/740001/third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp#newcode283 third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp:283: ASSERT(m_workerThread->workerGlobalScope()->isWorkerGlobalScope()); On 2016/03/09 06:26:12, tyoshino wrote: > On 2016/03/08 ...
4 years, 9 months ago (2016-03-11 19:52:14 UTC) #79
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/830001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/830001
4 years, 9 months ago (2016-03-11 22:45:42 UTC) #82
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/3778) ios_dbg_simulator_ninja on ...
4 years, 9 months ago (2016-03-11 22:48:50 UTC) #84
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/850001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/850001
4 years, 9 months ago (2016-03-11 23:22:20 UTC) #86
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-12 01:12:13 UTC) #88
hiroshige
japhet@, could you take a look? +kinuko@ for moving WorkerThreadTest-related code.
4 years, 9 months ago (2016-03-17 18:48:17 UTC) #90
Nate Chapin
lgtm
4 years, 9 months ago (2016-03-17 22:43:58 UTC) #91
kinuko
lgtm
4 years, 9 months ago (2016-03-18 08:54:30 UTC) #92
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/850001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/850001
4 years, 9 months ago (2016-03-18 17:18:06 UTC) #95
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_gn/builds/6429) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-18 17:19:49 UTC) #97
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/890001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/890001
4 years, 9 months ago (2016-03-18 22:05:50 UTC) #100
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/6630) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-18 22:09:05 UTC) #102
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257343003/910001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257343003/910001
4 years, 9 months ago (2016-03-18 22:35:28 UTC) #105
commit-bot: I haz the power
Committed patchset #33 (id:910001)
4 years, 9 months ago (2016-03-19 00:57:22 UTC) #107
commit-bot: I haz the power
4 years, 9 months ago (2016-03-19 00:58:22 UTC) #109
Message was sent while issue was closed.
Patchset 33 (id:??) landed as
https://crrev.com/c273884cebc427b90d7b989c1210ebb0ffeebfe3
Cr-Commit-Position: refs/heads/master@{#382156}

Powered by Google App Engine
This is Rietveld 408576698