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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp

Issue 1373503002: Fix the drift in repeating timers (try #2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename some variables and add a todo Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "platform/graphics/RecordingImageBufferSurface.h" 6 #include "platform/graphics/RecordingImageBufferSurface.h"
7 7
8 #include "platform/graphics/GraphicsContext.h" 8 #include "platform/graphics/GraphicsContext.h"
9 #include "platform/graphics/ImageBuffer.h" 9 #include "platform/graphics/ImageBuffer.h"
10 #include "platform/graphics/ImageBufferClient.h" 10 #include "platform/graphics/ImageBufferClient.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 public: 259 public:
260 MockWebTaskRunner() : m_task(0) { } 260 MockWebTaskRunner() : m_task(0) { }
261 ~MockWebTaskRunner() override { } 261 ~MockWebTaskRunner() override { }
262 262
263 virtual void postTask(const WebTraceLocation&, Task* task) 263 virtual void postTask(const WebTraceLocation&, Task* task)
264 { 264 {
265 EXPECT_EQ((Task*)0, m_task); 265 EXPECT_EQ((Task*)0, m_task);
266 m_task = task; 266 m_task = task;
267 } 267 }
268 268
269 void postDelayedTask(const WebTraceLocation&, Task*, long long delayMs) override { ASSERT_NOT_REACHED(); }; 269 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) ove rride { ASSERT_NOT_REACHED(); };
270 270
271 Task* m_task; 271 Task* m_task;
272 }; 272 };
273 273
274 class CurrentThreadMock : public WebThread { 274 class CurrentThreadMock : public WebThread {
275 public: 275 public:
276 CurrentThreadMock() : m_taskObserver(0) { } 276 CurrentThreadMock() : m_taskObserver(0) { }
277 277
278 ~CurrentThreadMock() override 278 ~CurrentThreadMock() override
279 { 279 {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 405
406 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) 406 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect)
407 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) 407 TEST_F(RecordingImageBufferSurfaceTest, testClearRect)
408 { 408 {
409 CALL_TEST_TASK_WRAPPER(testClearRect); 409 CALL_TEST_TASK_WRAPPER(testClearRect);
410 expectDisplayListEnabled(true); 410 expectDisplayListEnabled(true);
411 } 411 }
412 412
413 } // namespace blink 413 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/TimerTest.cpp ('k') | third_party/WebKit/public/platform/WebTaskRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698