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

Unified Diff: cc/CCLayerQuadTest.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/CCLayerIteratorTest.cpp ('k') | cc/CCLayerSorterTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerQuadTest.cpp
diff --git a/cc/CCLayerQuadTest.cpp b/cc/CCLayerQuadTest.cpp
deleted file mode 100644
index 6a1b8ff8e3c5e7c9b8354322235aa8bb3d0466a6..0000000000000000000000000000000000000000
--- a/cc/CCLayerQuadTest.cpp
+++ /dev/null
@@ -1,45 +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 "CCLayerQuad.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-using namespace cc;
-
-namespace {
-
-TEST(CCLayerQuadTest, FloatQuadConversion)
-{
- FloatPoint p1(-0.5, -0.5);
- FloatPoint p2( 0.5, -0.5);
- FloatPoint p3( 0.5, 0.5);
- FloatPoint p4(-0.5, 0.5);
-
- FloatQuad quadCW(p1, p2, p3, p4);
- CCLayerQuad layerQuadCW(quadCW);
- EXPECT_TRUE(layerQuadCW.floatQuad() == quadCW);
-
- FloatQuad quadCCW(p1, p4, p3, p2);
- CCLayerQuad layerQuadCCW(quadCCW);
- EXPECT_TRUE(layerQuadCCW.floatQuad() == quadCCW);
-}
-
-TEST(CCLayerQuadTest, Inflate)
-{
- FloatPoint p1(-0.5, -0.5);
- FloatPoint p2( 0.5, -0.5);
- FloatPoint p3( 0.5, 0.5);
- FloatPoint p4(-0.5, 0.5);
-
- FloatQuad quad(p1, p2, p3, p4);
- CCLayerQuad layerQuad(quad);
- quad.scale(2, 2);
- layerQuad.inflate(0.5);
- EXPECT_TRUE(layerQuad.floatQuad() == quad);
-}
-
-} // namespace
« no previous file with comments | « cc/CCLayerIteratorTest.cpp ('k') | cc/CCLayerSorterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698