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

Side by Side Diff: chrome/browser/ui/views/payments/view_stack_unittest.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/payments/view_stack.cc ('k') | chrome/browser/ui/views/tabs/tab_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698