OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <limits> |
| 6 |
5 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
6 #include "cc/animation/transform_operations.h" | 8 #include "cc/animation/transform_operations.h" |
7 #include "cc/test/geometry_test_utils.h" | 9 #include "cc/test/geometry_test_utils.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "ui/gfx/vector3d_f.h" | 11 #include "ui/gfx/vector3d_f.h" |
10 | 12 |
11 namespace cc { | 13 namespace cc { |
12 namespace { | 14 namespace { |
13 | 15 |
14 TEST(TransformOperationTest, TransformTypesAreUnique) { | 16 TEST(TransformOperationTest, TransformTypesAreUnique) { |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 expected.ApplyPerspectiveDepth( | 596 expected.ApplyPerspectiveDepth( |
595 500 + 0.5 * std::numeric_limits<double>::max()); | 597 500 + 0.5 * std::numeric_limits<double>::max()); |
596 | 598 |
597 EXPECT_TRANSFORMATION_MATRIX_EQ( | 599 EXPECT_TRANSFORMATION_MATRIX_EQ( |
598 expected, identity_operations[i]->Blend(operations, progress)); | 600 expected, identity_operations[i]->Blend(operations, progress)); |
599 } | 601 } |
600 } | 602 } |
601 | 603 |
602 } // namespace | 604 } // namespace |
603 } // namespace cc | 605 } // namespace cc |
OLD | NEW |