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

Unified Diff: cc/CCTimerTest.cpp

Issue 11108020: [cc] Change cc_tests.gyp filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCTiledLayerImplTest.cpp ('k') | cc/ContentLayerChromiumTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCTimerTest.cpp
diff --git a/cc/CCTimerTest.cpp b/cc/CCTimerTest.cpp
deleted file mode 100644
index f29b3e3eba99c606fbb4cf5a8b6443867bffb30a..0000000000000000000000000000000000000000
--- a/cc/CCTimerTest.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-
-#include "CCTimer.h"
-
-#include "CCSchedulerTestCommon.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using namespace cc;
-using namespace WebKitTests;
-
-namespace {
-
-class CCTimerTest : public testing::Test, public CCTimerClient {
-public:
- CCTimerTest() : m_flag(false) { }
-
- void onTimerFired() { m_flag = true; }
-
-protected:
- FakeCCThread m_thread;
- bool m_flag;
-};
-
-TEST_F(CCTimerTest, OneShot)
-{
- CCTimer timer(&m_thread, this);
- timer.startOneShot(0.001);
- EXPECT_TRUE(timer.isActive());
- m_thread.runPendingTask();
- EXPECT_FALSE(timer.isActive());
- EXPECT_TRUE(m_flag);
- EXPECT_FALSE(m_thread.hasPendingTask());
-}
-
-TEST_F(CCTimerTest, StopManually)
-{
- CCTimer timer(&m_thread, this);
- timer.startOneShot(0.001);
- EXPECT_TRUE(timer.isActive());
- timer.stop();
- EXPECT_FALSE(timer.isActive());
-
- m_thread.runPendingTask();
- EXPECT_FALSE(m_flag);
- EXPECT_FALSE(m_thread.hasPendingTask());
-}
-
-TEST_F(CCTimerTest, StopByScope)
-{
- {
- CCTimer timer(&m_thread, this);
- timer.startOneShot(0.001);
- }
-
- m_thread.runPendingTask();
- EXPECT_FALSE(m_flag);
-}
-
-}
« no previous file with comments | « cc/CCTiledLayerImplTest.cpp ('k') | cc/ContentLayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698