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

Side by Side Diff: ui/views/animation/bounds_animator_unittest.cc

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 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 | « ui/views/animation/bounds_animator.cc ('k') | ui/views/bubble/border_contents_view.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 (c) 2011 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "ui/base/animation/slide_animation.h" 6 #include "ui/base/animation/slide_animation.h"
7 #include "ui/base/animation/test_animation_delegate.h" 7 #include "ui/base/animation/test_animation_delegate.h"
8 #include "ui/views/animation/bounds_animator.h" 8 #include "ui/views/animation/bounds_animator.h"
9 #include "views/view.h" 9 #include "ui/views/view.h"
10 10
11 using views::BoundsAnimator; 11 using views::BoundsAnimator;
12 using ui::Animation; 12 using ui::Animation;
13 using ui::SlideAnimation; 13 using ui::SlideAnimation;
14 using ui::TestAnimationDelegate; 14 using ui::TestAnimationDelegate;
15 15
16 namespace { 16 namespace {
17 17
18 class TestBoundsAnimator : public BoundsAnimator { 18 class TestBoundsAnimator : public BoundsAnimator {
19 public: 19 public:
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 animator()->StopAnimatingView(child()); 173 animator()->StopAnimatingView(child());
174 174
175 // Shouldn't be animating now. 175 // Shouldn't be animating now.
176 EXPECT_FALSE(animator()->IsAnimating()); 176 EXPECT_FALSE(animator()->IsAnimating());
177 177
178 // Stopping should both cancel the delegate and delete it. 178 // Stopping should both cancel the delegate and delete it.
179 EXPECT_TRUE(OwnedDelegate::get_and_clear_deleted()); 179 EXPECT_TRUE(OwnedDelegate::get_and_clear_deleted());
180 EXPECT_TRUE(OwnedDelegate::get_and_clear_canceled()); 180 EXPECT_TRUE(OwnedDelegate::get_and_clear_canceled());
181 } 181 }
OLDNEW
« no previous file with comments | « ui/views/animation/bounds_animator.cc ('k') | ui/views/bubble/border_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698