OLD | NEW |
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 Loading... |
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 |
OLD | NEW |