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

Side by Side Diff: cc/layer_animation_controller_unittest.cc

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/io_surface_layer_impl.cc ('k') | cc/layer_tree_host_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/layer_animation_controller.h" 5 #include "cc/layer_animation_controller.h"
6 6
7 #include "cc/active_animation.h" 7 #include "cc/active_animation.h"
8 #include "cc/animation_curve.h" 8 #include "cc/animation_curve.h"
9 #include "cc/test/animation_test_common.h" 9 #include "cc/test/animation_test_common.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/gfx/transform.h" 12 #include "ui/gfx/transform.h"
13 13
14 using namespace WebKitTests;
15
16 namespace cc { 14 namespace cc {
17 namespace { 15 namespace {
18 16
19 void expectTranslateX(double translateX, const gfx::Transform& matrix) 17 void expectTranslateX(double translateX, const gfx::Transform& matrix)
20 { 18 {
21 EXPECT_FLOAT_EQ(translateX, matrix.matrix().getDouble(0, 3)); 19 EXPECT_FLOAT_EQ(translateX, matrix.matrix().getDouble(0, 3));
22 } 20 }
23 21
24 scoped_ptr<ActiveAnimation> createActiveAnimation(scoped_ptr<AnimationCurve> cur ve, int id, ActiveAnimation::TargetProperty property) 22 scoped_ptr<ActiveAnimation> createActiveAnimation(scoped_ptr<AnimationCurve> cur ve, int id, ActiveAnimation::TargetProperty property)
25 { 23 {
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 513
516 controller->pushAnimationUpdatesTo(controllerImpl.get()); 514 controller->pushAnimationUpdatesTo(controllerImpl.get());
517 515
518 activeAnimation = controllerImpl->getActiveAnimation(0, ActiveAnimation::Opa city); 516 activeAnimation = controllerImpl->getActiveAnimation(0, ActiveAnimation::Opa city);
519 EXPECT_TRUE(activeAnimation); 517 EXPECT_TRUE(activeAnimation);
520 EXPECT_EQ(ActiveAnimation::WaitingForTargetAvailability, activeAnimation->ru nState()); 518 EXPECT_EQ(ActiveAnimation::WaitingForTargetAvailability, activeAnimation->ru nState());
521 } 519 }
522 520
523 } // namespace 521 } // namespace
524 } // namespace cc 522 } // namespace cc
OLDNEW
« no previous file with comments | « cc/io_surface_layer_impl.cc ('k') | cc/layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698