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

Side by Side Diff: ui/app_list/shower/app_list_shower_impl_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/test/app_list_test_model.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/app_list/shower/app_list_shower_impl.h"
6
5 #include <memory> 7 #include <memory>
6 8
7 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
8 #include "ui/app_list/shower/app_list_shower_delegate_factory.h" 10 #include "ui/app_list/shower/app_list_shower_delegate_factory.h"
9 #include "ui/app_list/shower/app_list_shower_impl.h"
10 #include "ui/app_list/shower/test/app_list_shower_impl_test_api.h" 11 #include "ui/app_list/shower/test/app_list_shower_impl_test_api.h"
11 #include "ui/app_list/test/app_list_test_view_delegate.h" 12 #include "ui/app_list/test/app_list_test_view_delegate.h"
12 #include "ui/app_list/views/app_list_view.h" 13 #include "ui/app_list/views/app_list_view.h"
13 #include "ui/aura/client/focus_client.h" 14 #include "ui/aura/client/focus_client.h"
14 #include "ui/aura/test/aura_test_base.h" 15 #include "ui/aura/test/aura_test_base.h"
15 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
16 #include "ui/wm/core/default_activation_client.h" 17 #include "ui/wm/core/default_activation_client.h"
17 #include "ui/wm/core/window_util.h" 18 #include "ui/wm/core/window_util.h"
18 19
19 namespace app_list { 20 namespace app_list {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 TEST_F(AppListShowerImplTest, WidgetDestroyed) { 197 TEST_F(AppListShowerImplTest, WidgetDestroyed) {
197 shower()->Show(container()); 198 shower()->Show(container());
198 EXPECT_TRUE(shower()->GetTargetVisibility()); 199 EXPECT_TRUE(shower()->GetTargetVisibility());
199 shower()->GetView()->GetWidget()->CloseNow(); 200 shower()->GetView()->GetWidget()->CloseNow();
200 EXPECT_FALSE(shower()->GetTargetVisibility()); 201 EXPECT_FALSE(shower()->GetTargetVisibility());
201 test::AppListShowerImplTestApi shower_test_api(shower()); 202 test::AppListShowerImplTestApi shower_test_api(shower());
202 EXPECT_FALSE(shower_test_api.shower_delegate()); 203 EXPECT_FALSE(shower_test_api.shower_delegate());
203 } 204 }
204 205
205 } // namespace app_list 206 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/test/app_list_test_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698