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

Unified Diff: ui/gfx/compositor/test/test_utils.cc

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 8 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 | « ui/gfx/compositor/test/test_utils.h ('k') | ui/gfx/compositor/test_web_graphics_context_3d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/test/test_utils.cc
diff --git a/ui/gfx/compositor/test/test_utils.cc b/ui/gfx/compositor/test/test_utils.cc
deleted file mode 100644
index 6700d8542f34b8dae54474f56650d6db0371ad48..0000000000000000000000000000000000000000
--- a/ui/gfx/compositor/test/test_utils.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 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 "ui/gfx/compositor/test/test_utils.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gfx/rect.h"
-#include "ui/gfx/transform.h"
-
-namespace ui {
-
-void CheckApproximatelyEqual(const Transform& lhs, const Transform& rhs) {
- for (int i = 0; i < 4; ++i) {
- for (int j = 0; j < 4; ++j) {
- EXPECT_FLOAT_EQ(lhs.matrix().get(i, j), rhs.matrix().get(i, j));
- }
- }
-}
-
-void CheckApproximatelyEqual(const gfx::Rect& lhs, const gfx::Rect& rhs) {
- EXPECT_FLOAT_EQ(lhs.x(), rhs.x());
- EXPECT_FLOAT_EQ(lhs.y(), rhs.y());
- EXPECT_FLOAT_EQ(lhs.width(), rhs.width());
- EXPECT_FLOAT_EQ(lhs.height(), rhs.height());
-}
-
-} // namespace ui
« no previous file with comments | « ui/gfx/compositor/test/test_utils.h ('k') | ui/gfx/compositor/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698