|
Blink Platform: Remove time functions from Platform.
Simplification!
To support the use case of mocking timers for tests, CurrentTime.h now
provides a customization function. Currently, it overrides the three
functions at once, but practically that wouldn't be a problem.
Some unit tests try to override timing functions by replacing
Platform. However, CachingCorrectnessTest and TextFinderTest seemed to
fail to do so, as they apparently lacked Platform::initialize()
calls. I'm not sure why these tests have not been failing. Anyways, this
patch "fixes" these issues, too.
BUG= 565765
Committed: https://crrev.com/a5466f457a195abd0f03066439c0efae3b5e14b0
Cr-Commit-Position: refs/heads/master@{#375524}
Total comments: 6
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+96 lines, -124 lines) |
Patch |
|
M |
content/child/blink_platform_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/child/blink_platform_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/core/v8/V8GCForContextDispose.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp
|
View
|
1
2
3
|
5 chunks |
+15 lines, -25 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/webdatabase/Database.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/Timer.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/TimerTest.cpp
|
View
|
1
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/Heap.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/HeapPage.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/SafePoint.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/testing/RunAllTests.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebKit.cpp
|
View
|
1
|
2 chunks |
+1 line, -11 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
View
|
1
2
3
|
1 chunk |
+22 lines, -35 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/CurrentTime.h
|
View
|
1
|
1 chunk |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/CurrentTime.cpp
|
View
|
1
|
1 chunk |
+15 lines, -13 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/DEPS
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/ThreadingPthreads.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/WTF.h
|
View
|
1
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/WTF.cpp
|
View
|
1
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/wtf/testing/RunAllTests.cpp
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/Platform.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
Total messages: 58 (19 generated)
|