OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "app/animation_delegate.h" | |
6 #include "app/linear_animation.h" | |
7 #include "app/test_animation_delegate.h" | |
8 #include "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "ui/base/animation/animation_delegate.h" |
| 7 #include "ui/base/animation/linear_animation.h" |
| 8 #include "ui/base/animation/test_animation_delegate.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include "base/win/windows_version.h" | 11 #include "base/win/windows_version.h" |
12 #endif | 12 #endif |
13 | 13 |
| 14 namespace ui { |
| 15 |
14 class AnimationTest: public testing::Test { | 16 class AnimationTest: public testing::Test { |
15 private: | 17 private: |
16 MessageLoopForUI message_loop_; | 18 MessageLoopForUI message_loop_; |
17 }; | 19 }; |
18 | 20 |
19 namespace { | 21 namespace { |
20 | 22 |
21 /////////////////////////////////////////////////////////////////////////////// | 23 /////////////////////////////////////////////////////////////////////////////// |
22 // RunAnimation | 24 // RunAnimation |
23 | 25 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 EXPECT_EQ(!!result, Animation::ShouldRenderRichAnimation()); | 135 EXPECT_EQ(!!result, Animation::ShouldRenderRichAnimation()); |
134 } else { | 136 } else { |
135 // On XP, the function should check the SM_REMOTESESSION value. | 137 // On XP, the function should check the SM_REMOTESESSION value. |
136 EXPECT_EQ(!::GetSystemMetrics(SM_REMOTESESSION), | 138 EXPECT_EQ(!::GetSystemMetrics(SM_REMOTESESSION), |
137 Animation::ShouldRenderRichAnimation()); | 139 Animation::ShouldRenderRichAnimation()); |
138 } | 140 } |
139 #else | 141 #else |
140 EXPECT_TRUE(Animation::ShouldRenderRichAnimation()); | 142 EXPECT_TRUE(Animation::ShouldRenderRichAnimation()); |
141 #endif | 143 #endif |
142 } | 144 } |
| 145 |
| 146 } // namespace ui |
OLD | NEW |