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

Side by Side Diff: cc/animation/keyframed_animation_curve_unittest.cc

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/animation/keyframed_animation_curve.h" 5 #include "cc/animation/keyframed_animation_curve.h"
6 6
7 #include "cc/animation/transform_operations.h" 7 #include "cc/animation/transform_operations.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/gfx/animation/tween.h" 10 #include "ui/gfx/animation/tween.h"
11 #include "ui/gfx/box_f.h" 11 #include "ui/gfx/geometry/box_f.h"
12 #include "ui/gfx/test/gfx_util.h" 12 #include "ui/gfx/test/gfx_util.h"
13 13
14 namespace cc { 14 namespace cc {
15 namespace { 15 namespace {
16 16
17 void ExpectTranslateX(SkMScalar translate_x, const gfx::Transform& transform) { 17 void ExpectTranslateX(SkMScalar translate_x, const gfx::Transform& transform) {
18 EXPECT_FLOAT_EQ(translate_x, transform.matrix().get(0, 3)); 18 EXPECT_FLOAT_EQ(translate_x, transform.matrix().get(0, 3));
19 } 19 }
20 20
21 void ExpectBrightness(double brightness, const FilterOperations& filter) { 21 void ExpectBrightness(double brightness, const FilterOperations& filter) {
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 TransformOperations operations3; 540 TransformOperations operations3;
541 operations3.AppendRotate(1.f, 0.f, 0.f, 90.f); 541 operations3.AppendRotate(1.f, 0.f, 0.f, 90.f);
542 curve->AddKeyframe(TransformKeyframe::Create( 542 curve->AddKeyframe(TransformKeyframe::Create(
543 3.0, operations3, EaseTimingFunction::Create())); 543 3.0, operations3, EaseTimingFunction::Create()));
544 544
545 EXPECT_FALSE(curve->MaximumScale(&maximum_scale)); 545 EXPECT_FALSE(curve->MaximumScale(&maximum_scale));
546 } 546 }
547 547
548 } // namespace 548 } // namespace
549 } // namespace cc 549 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698