OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ash/test/ash_test_base.h" | 5 #include "ash/test/ash_test_base.h" |
6 #include "ash/test/ash_test_helper.h" | 6 #include "ash/test/ash_test_helper.h" |
7 #include "ash/test/ash_test_views_delegate.h" | 7 #include "ash/test/ash_test_views_delegate.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "chrome/browser/extensions/test_extension_environment.h" | 10 #include "chrome/browser/extensions/test_extension_environment.h" |
10 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h" | 11 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h" |
11 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.h" | 12 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.h" |
12 #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h" | 13 #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h" |
13 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
14 #include "ui/views/controls/button/label_button.h" | 15 #include "ui/views/controls/button/label_button.h" |
15 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
16 #include "ui/views/window/dialog_delegate.h" | 17 #include "ui/views/window/dialog_delegate.h" |
17 | 18 |
18 namespace { | 19 namespace { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 dialog_footer->SetPinnedToShelf(true); | 71 dialog_footer->SetPinnedToShelf(true); |
71 EXPECT_FALSE(pin_button->visible()); | 72 EXPECT_FALSE(pin_button->visible()); |
72 EXPECT_TRUE(unpin_button->visible()); | 73 EXPECT_TRUE(unpin_button->visible()); |
73 EXPECT_TRUE(unpin_button->HasFocus()); | 74 EXPECT_TRUE(unpin_button->HasFocus()); |
74 | 75 |
75 dialog_footer->SetPinnedToShelf(false); | 76 dialog_footer->SetPinnedToShelf(false); |
76 EXPECT_TRUE(pin_button->visible()); | 77 EXPECT_TRUE(pin_button->visible()); |
77 EXPECT_FALSE(unpin_button->visible()); | 78 EXPECT_FALSE(unpin_button->visible()); |
78 EXPECT_TRUE(pin_button->HasFocus()); | 79 EXPECT_TRUE(pin_button->HasFocus()); |
79 } | 80 } |
OLD | NEW |