summaryrefslogtreecommitdiffstats
path: root/cc/frame_rate_controller_unittest.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:22:42 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:22:42 +0000
commitc753e25a8b4366c44134a8c21b9ed3392bf48608 (patch)
treef378c8a762caccf60856a1670ae33dfd638b9453 /cc/frame_rate_controller_unittest.cc
parent503160f80568f024fa712e280bb1a4e1e6ca1ec3 (diff)
downloadchromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.zip
chromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.tar.gz
chromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.tar.bz2
Revert "cc: Rename cc classes and members to match filenames"
This reverts commit 184fac5add06d5f4670fa6be4a4d3b39232d51bb. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/frame_rate_controller_unittest.cc')
-rw-r--r--cc/frame_rate_controller_unittest.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/cc/frame_rate_controller_unittest.cc b/cc/frame_rate_controller_unittest.cc
index f3af465..b0a6bd1 100644
--- a/cc/frame_rate_controller_unittest.cc
+++ b/cc/frame_rate_controller_unittest.cc
@@ -14,9 +14,9 @@ using namespace WebKitTests;
namespace {
-class FakeFrameRateControllerClient : public cc::FrameRateControllerClient {
+class FakeCCFrameRateControllerClient : public cc::CCFrameRateControllerClient {
public:
- FakeFrameRateControllerClient() { reset(); }
+ FakeCCFrameRateControllerClient() { reset(); }
void reset() { m_vsyncTicked = false; }
bool vsyncTicked() const { return m_vsyncTicked; }
@@ -28,13 +28,13 @@ protected:
};
-TEST(FrameRateControllerTest, TestFrameThrottling_ImmediateAck)
+TEST(CCFrameRateControllerTest, TestFrameThrottling_ImmediateAck)
{
- FakeThread thread;
- FakeFrameRateControllerClient client;
+ FakeCCThread thread;
+ FakeCCFrameRateControllerClient client;
base::TimeDelta interval = base::TimeDelta::FromMicroseconds(base::Time::kMicrosecondsPerSecond / 60);
- scoped_refptr<FakeDelayBasedTimeSource> timeSource = FakeDelayBasedTimeSource::create(interval, &thread);
- FrameRateController controller(timeSource);
+ scoped_refptr<FakeCCDelayBasedTimeSource> timeSource = FakeCCDelayBasedTimeSource::create(interval, &thread);
+ CCFrameRateController controller(timeSource);
controller.setClient(&client);
controller.setActive(true);
@@ -63,13 +63,13 @@ TEST(FrameRateControllerTest, TestFrameThrottling_ImmediateAck)
EXPECT_TRUE(client.vsyncTicked());
}
-TEST(FrameRateControllerTest, TestFrameThrottling_TwoFramesInFlight)
+TEST(CCFrameRateControllerTest, TestFrameThrottling_TwoFramesInFlight)
{
- FakeThread thread;
- FakeFrameRateControllerClient client;
+ FakeCCThread thread;
+ FakeCCFrameRateControllerClient client;
base::TimeDelta interval = base::TimeDelta::FromMicroseconds(base::Time::kMicrosecondsPerSecond / 60);
- scoped_refptr<FakeDelayBasedTimeSource> timeSource = FakeDelayBasedTimeSource::create(interval, &thread);
- FrameRateController controller(timeSource);
+ scoped_refptr<FakeCCDelayBasedTimeSource> timeSource = FakeCCDelayBasedTimeSource::create(interval, &thread);
+ CCFrameRateController controller(timeSource);
controller.setClient(&client);
controller.setActive(true);
@@ -120,11 +120,11 @@ TEST(FrameRateControllerTest, TestFrameThrottling_TwoFramesInFlight)
EXPECT_TRUE(client.vsyncTicked());
}
-TEST(FrameRateControllerTest, TestFrameThrottling_Unthrottled)
+TEST(CCFrameRateControllerTest, TestFrameThrottling_Unthrottled)
{
- FakeThread thread;
- FakeFrameRateControllerClient client;
- FrameRateController controller(&thread);
+ FakeCCThread thread;
+ FakeCCFrameRateControllerClient client;
+ CCFrameRateController controller(&thread);
controller.setClient(&client);
controller.setMaxFramesPending(2);
@@ -135,7 +135,7 @@ TEST(FrameRateControllerTest, TestFrameThrottling_Unthrottled)
EXPECT_TRUE(client.vsyncTicked());
client.reset();
- // Even if we don't call didBeginFrame, FrameRateController should
+ // Even if we don't call didBeginFrame, CCFrameRateController should
// still attempt to vsync tick multiple times until it does result in
// a didBeginFrame.
thread.runPendingTask();