OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "services/view_manager/animation_runner.h" | 5 #include "services/view_manager/animation_runner.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "mojo/converters/geometry/geometry_type_converters.h" | 8 #include "mojo/converters/geometry/geometry_type_converters.h" |
9 #include "mojo/services/public/interfaces/view_manager/view_manager_constants.mo
jom.h" | 9 #include "mojo/services/view_manager/public/interfaces/view_manager_constants.mo
jom.h" |
10 #include "services/view_manager/animation_runner_observer.h" | 10 #include "services/view_manager/animation_runner_observer.h" |
11 #include "services/view_manager/scheduled_animation_group.h" | 11 #include "services/view_manager/scheduled_animation_group.h" |
12 #include "services/view_manager/server_view.h" | 12 #include "services/view_manager/server_view.h" |
13 #include "services/view_manager/test_server_view_delegate.h" | 13 #include "services/view_manager/test_server_view_delegate.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace service { | 17 namespace service { |
18 namespace { | 18 namespace { |
19 | 19 |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 496 |
497 // Opacity should go to final value. | 497 // Opacity should go to final value. |
498 EXPECT_EQ(.5f, view.opacity()); | 498 EXPECT_EQ(.5f, view.opacity()); |
499 // Transform shouldn't have changed since newly scheduled animation also has | 499 // Transform shouldn't have changed since newly scheduled animation also has |
500 // transform in it. | 500 // transform in it. |
501 EXPECT_TRUE(view.transform().IsIdentity()); | 501 EXPECT_TRUE(view.transform().IsIdentity()); |
502 } | 502 } |
503 | 503 |
504 } // namespace service | 504 } // namespace service |
505 } // namespace mojo | 505 } // namespace mojo |
OLD | NEW |