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

Unified Diff: app/slide_animation_unittest.cc

Issue 6154001: Move animation code to new ui/base/animation directory.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/slide_animation.cc ('k') | app/test_animation_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/slide_animation_unittest.cc
===================================================================
--- app/slide_animation_unittest.cc (revision 70685)
+++ app/slide_animation_unittest.cc (working copy)
@@ -1,30 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "app/slide_animation.h"
-#include "app/test_animation_delegate.h"
-#include "base/scoped_ptr.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-class SlideAnimationTest: public testing::Test {
- private:
- MessageLoopForUI message_loop_;
-};
-
-// Tests that delegate is not notified when animation is running and is deleted.
-// (Such a scenario would cause problems for BoundsAnimator).
-TEST_F(SlideAnimationTest, DontNotifyOnDelete) {
- TestAnimationDelegate delegate;
- scoped_ptr<SlideAnimation> animation(new SlideAnimation(&delegate));
-
- // Start the animation.
- animation->Show();
-
- // Delete the animation.
- animation.reset();
-
- // Make sure the delegate wasn't notified.
- EXPECT_FALSE(delegate.finished());
- EXPECT_FALSE(delegate.canceled());
-}
« no previous file with comments | « app/slide_animation.cc ('k') | app/test_animation_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698