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

Side by Side Diff: content/browser/web_contents/aura/overscroll_window_animation_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/web_contents/aura/overscroll_window_animation.h" 5 #include "content/browser/web_contents/aura/overscroll_window_animation.h"
6 6
7 #include "base/macros.h"
7 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/aura/test/aura_test_base.h" 9 #include "ui/aura/test/aura_test_base.h"
9 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
10 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 11 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
11 #include "ui/compositor/scoped_layer_animation_settings.h" 12 #include "ui/compositor/scoped_layer_animation_settings.h"
12 #include "ui/compositor/test/layer_animator_test_controller.h" 13 #include "ui/compositor/test/layer_animator_test_controller.h"
13 14
14 namespace content { 15 namespace content {
15 16
16 class OverscrollWindowAnimationTest 17 class OverscrollWindowAnimationTest
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // The animation has finished, OverscrollCompleted should have been fired. 217 // The animation has finished, OverscrollCompleted should have been fired.
217 animator->Step(start_time + duration); 218 animator->Step(start_time + duration);
218 EXPECT_FALSE(owa()->is_active()); 219 EXPECT_FALSE(owa()->is_active());
219 EXPECT_FALSE(overscroll_started()); 220 EXPECT_FALSE(overscroll_started());
220 EXPECT_TRUE(overscroll_completing()); 221 EXPECT_TRUE(overscroll_completing());
221 EXPECT_TRUE(overscroll_completed()); 222 EXPECT_TRUE(overscroll_completed());
222 EXPECT_FALSE(overscroll_aborted()); 223 EXPECT_FALSE(overscroll_aborted());
223 } 224 }
224 225
225 } // namespace content 226 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698