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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/compositor/test/test_utils.h ('k') | ui/compositor/transform_animation_curve_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/test_utils.cc
diff --git a/ui/compositor/test/test_utils.cc b/ui/compositor/test/test_utils.cc
deleted file mode 100644
index 145e0258a301212ed1cdf33bafbc6f994e3774fe..0000000000000000000000000000000000000000
--- a/ui/compositor/test/test_utils.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 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/compositor/test/test_utils.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gfx/rect.h"
-#include "ui/gfx/transform.h"
-
-namespace ui {
-
-//TODO(avallee): Make this into a predicate and add some matrix pretty printing.
-void CheckApproximatelyEqual(const gfx::Transform& lhs,
- const gfx::Transform& rhs) {
- unsigned int errors = 0;
- 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))
- << "(i, j) = (" << i << ", " << j << "), error count: " << ++errors;
- }
- }
-
- if (errors) {
- ADD_FAILURE() << "Expected matrix:\n"
- << lhs.ToString() << "\n"
- << "Actual matrix:\n"
- << rhs.ToString();
- }
-}
-
-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/compositor/test/test_utils.h ('k') | ui/compositor/transform_animation_curve_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698