| OLD | NEW | 
|    1 // Copyright 2016 The Chromium Authors. All rights reserved. |    1 // Copyright 2016 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 "base/memory/ptr_util.h" | 
|    5 #include "base/observer_list.h" |    6 #include "base/observer_list.h" | 
|    6 #include "base/run_loop.h" |    7 #include "base/run_loop.h" | 
|    7 #include "chrome/browser/ui/views/payments/view_stack.h" |    8 #include "chrome/browser/ui/views/payments/view_stack.h" | 
|    8 #include "ui/gfx/animation/test_animation_delegate.h" |    9 #include "ui/gfx/animation/test_animation_delegate.h" | 
|    9 #include "ui/views/test/views_test_base.h" |   10 #include "ui/views/test/views_test_base.h" | 
|   10  |   11  | 
|   11 class TestStackView : public views::View { |   12 class TestStackView : public views::View { | 
|   12  public: |   13  public: | 
|   13   class Observer { |   14   class Observer { | 
|   14    public: |   15    public: | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  165   view_stack_->slide_out_animator_->SetAnimationDelegate( |  166   view_stack_->slide_out_animator_->SetAnimationDelegate( | 
|  166       view_ptr, |  167       view_ptr, | 
|  167       std::unique_ptr<gfx::AnimationDelegate>( |  168       std::unique_ptr<gfx::AnimationDelegate>( | 
|  168           new gfx::TestAnimationDelegate())); |  169           new gfx::TestAnimationDelegate())); | 
|  169  |  170  | 
|  170   base::RunLoop().Run(); |  171   base::RunLoop().Run(); | 
|  171   EXPECT_FALSE(view_stack_->slide_out_animator_->IsAnimating()); |  172   EXPECT_FALSE(view_stack_->slide_out_animator_->IsAnimating()); | 
|  172  |  173  | 
|  173   ASSERT_TRUE(observer.view_deleted()); |  174   ASSERT_TRUE(observer.view_deleted()); | 
|  174 } |  175 } | 
| OLD | NEW |