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

Side by Side Diff: cc/test/scheduler_test_common.cc

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 6
7 #include "cc/test/scheduler_test_common.h" 7 #include "cc/test/scheduler_test_common.h"
8 8
9 namespace WebKitTests { 9 namespace WebKitTests {
10 10
11 void FakeCCTimeSourceClient::onTimerTick() 11 void FakeTimeSourceClient::onTimerTick()
12 { 12 {
13 m_tickCalled = true; 13 m_tickCalled = true;
14 } 14 }
15 15
16 FakeCCThread::FakeCCThread() 16 FakeThread::FakeThread()
17 { 17 {
18 reset(); 18 reset();
19 } 19 }
20 20
21 FakeCCThread::~FakeCCThread() 21 FakeThread::~FakeThread()
22 { 22 {
23 } 23 }
24 24
25 void FakeCCThread::postTask(PassOwnPtr<Task>) 25 void FakeThread::postTask(PassOwnPtr<Task>)
26 { 26 {
27 ASSERT_NOT_REACHED(); 27 ASSERT_NOT_REACHED();
28 } 28 }
29 29
30 void FakeCCThread::postDelayedTask(PassOwnPtr<Task> task, long long delay) 30 void FakeThread::postDelayedTask(PassOwnPtr<Task> task, long long delay)
31 { 31 {
32 if (m_runPendingTaskOnOverwrite && hasPendingTask()) 32 if (m_runPendingTaskOnOverwrite && hasPendingTask())
33 runPendingTask(); 33 runPendingTask();
34 34
35 EXPECT_TRUE(!hasPendingTask()); 35 EXPECT_TRUE(!hasPendingTask());
36 m_pendingTask = task; 36 m_pendingTask = task;
37 m_pendingTaskDelay = delay; 37 m_pendingTaskDelay = delay;
38 } 38 }
39 39
40 base::PlatformThreadId FakeCCThread::threadID() const 40 base::PlatformThreadId FakeThread::threadID() const
41 { 41 {
42 return 0; 42 return 0;
43 } 43 }
44 44
45 void FakeCCTimeSource::setClient(cc::CCTimeSourceClient* client) 45 void FakeTimeSource::setClient(cc::TimeSourceClient* client)
46 { 46 {
47 m_client = client; 47 m_client = client;
48 } 48 }
49 49
50 void FakeCCTimeSource::setActive(bool b) 50 void FakeTimeSource::setActive(bool b)
51 { 51 {
52 m_active = b; 52 m_active = b;
53 } 53 }
54 54
55 bool FakeCCTimeSource::active() const 55 bool FakeTimeSource::active() const
56 { 56 {
57 return m_active; 57 return m_active;
58 } 58 }
59 59
60 base::TimeTicks FakeCCTimeSource::lastTickTime() 60 base::TimeTicks FakeTimeSource::lastTickTime()
61 { 61 {
62 return base::TimeTicks(); 62 return base::TimeTicks();
63 } 63 }
64 64
65 base::TimeTicks FakeCCTimeSource::nextTickTime() 65 base::TimeTicks FakeTimeSource::nextTickTime()
66 { 66 {
67 return base::TimeTicks(); 67 return base::TimeTicks();
68 } 68 }
69 69
70 base::TimeTicks FakeCCDelayBasedTimeSource::now() const 70 base::TimeTicks FakeDelayBasedTimeSource::now() const
71 { 71 {
72 return m_now; 72 return m_now;
73 } 73 }
74 74
75 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698