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

Issue 2631383003: Use TestingPlatformSupportWithMockScheduler to use mocked Time (Closed)

Created:
3 years, 11 months ago by Takashi Toyoshima
Modified:
3 years, 11 months ago
Reviewers:
kinuko, 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

Use TestingPlatformSupportWithMockScheduler to use mocked Time Now MemoryCacheCorrectnessTest implements an original TimeFunction for testing, but it's available via TestingPlatformSupportWithMockScheduler. Because MemoryCacheCorrectnessTest needs to use TestingPlatformSupportWithMockScheduler once it is moved to platform, and to keep using the original TimeFunction costs a little to avoid conflicting with TestingPlatformSupportWithMockScheduler's one, let's use TestingPlatformSupportWithMockScheduler version beforehand. BUG=655920 TEST=webkit_unit_tests --gtest_filter=MemoryCacheCorrectnessTest.\* Review-Url: https://codereview.chromium.org/2631383003 Cr-Commit-Position: refs/heads/master@{#444763} Committed: https://chromium.googlesource.com/chromium/src/+/4105bfeb59cd108955521f923dc7731939f07de8

Patch Set 1 #

Total comments: 2

Patch Set 2 : member Scoped... #

Total comments: 1

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -18 lines) Patch
M third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp View 1 2 4 chunks +6 lines, -18 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
Takashi Toyoshima
PTAL
3 years, 11 months ago (2017-01-17 13:30:29 UTC) #3
kinuko
https://codereview.chromium.org/2631383003/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp (right): https://codereview.chromium.org/2631383003/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp#newcode127 third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp:127: initialize(platform); Why don't we have platform as a member ...
3 years, 11 months ago (2017-01-18 01:17:50 UTC) #9
Takashi Toyoshima
https://codereview.chromium.org/2631383003/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp (right): https://codereview.chromium.org/2631383003/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp#newcode127 third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp:127: initialize(platform); This is because ScopedTestingPlatformSupport is declared as a ...
3 years, 11 months ago (2017-01-19 03:51:18 UTC) #10
kinuko
On 2017/01/19 03:51:18, toyoshim wrote: > https://codereview.chromium.org/2631383003/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp > File third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp > (right): > > https://codereview.chromium.org/2631383003/diff/1/third_party/WebKit/Source/core/fetch/MemoryCacheCorrectnessTest.cpp#newcode127 ...
3 years, 11 months ago (2017-01-19 04:14:50 UTC) #11
Takashi Toyoshima
Yep. Agreed that as a people who works for both inside / outside blink :)
3 years, 11 months ago (2017-01-19 04:51:03 UTC) #12
Takashi Toyoshima
https://codereview.chromium.org/2631383003/diff/20001/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h File third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h (right): https://codereview.chromium.org/2631383003/diff/20001/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h#newcode196 third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h:196: class ScopedTestingPlatformSupport final { Same with https://codereview.chromium.org/2645733003/ Will be ...
3 years, 11 months ago (2017-01-19 05:40:14 UTC) #13
Takashi Toyoshima
PTAL
3 years, 11 months ago (2017-01-19 13:55:30 UTC) #16
kinuko
lgtm
3 years, 11 months ago (2017-01-19 14:02:19 UTC) #17
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/2631383003/40001
3 years, 11 months ago (2017-01-19 16:27:10 UTC) #21
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 16:33:17 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4105bfeb59cd108955521f923dc7...

Powered by Google App Engine
This is Rietveld 408576698