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

Unified Diff: cc/layer_quad_unittest.cc

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/layer_quad.cc ('k') | cc/layer_tiling_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_quad_unittest.cc
diff --git a/cc/layer_quad_unittest.cc b/cc/layer_quad_unittest.cc
deleted file mode 100644
index 71a3b297ab4500570b296f17dcc02b1586637cf1..0000000000000000000000000000000000000000
--- a/cc/layer_quad_unittest.cc
+++ /dev/null
@@ -1,44 +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 "cc/layer_quad.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gfx/quad_f.h"
-
-namespace cc {
-namespace {
-
-TEST(LayerQuadTest, QuadFConversion)
-{
- gfx::PointF p1(-0.5, -0.5);
- gfx::PointF p2( 0.5, -0.5);
- gfx::PointF p3( 0.5, 0.5);
- gfx::PointF p4(-0.5, 0.5);
-
- gfx::QuadF quadCW(p1, p2, p3, p4);
- LayerQuad layerQuadCW(quadCW);
- EXPECT_TRUE(layerQuadCW.ToQuadF() == quadCW);
-
- gfx::QuadF quadCCW(p1, p4, p3, p2);
- LayerQuad layerQuadCCW(quadCCW);
- EXPECT_TRUE(layerQuadCCW.ToQuadF() == quadCCW);
-}
-
-TEST(LayerQuadTest, Inflate)
-{
- gfx::PointF p1(-0.5, -0.5);
- gfx::PointF p2( 0.5, -0.5);
- gfx::PointF p3( 0.5, 0.5);
- gfx::PointF p4(-0.5, 0.5);
-
- gfx::QuadF quad(p1, p2, p3, p4);
- LayerQuad layerQuad(quad);
- quad.Scale(2, 2);
- layerQuad.Inflate(0.5);
- EXPECT_TRUE(layerQuad.ToQuadF() == quad);
-}
-
-} // namespace
-} // namespace cc
« no previous file with comments | « cc/layer_quad.cc ('k') | cc/layer_tiling_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698