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 "base/macros.h" |
5 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
6 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/sessions/session_tab_helper.h" | 9 #include "chrome/browser/sessions/session_tab_helper.h" |
9 #include "chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h" | 10 #include "chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h" |
10 #include "chrome/browser/ui/toolbar/toolbar_action_view_controller.h" | 11 #include "chrome/browser/ui/toolbar/toolbar_action_view_controller.h" |
11 #include "chrome/browser/ui/views/toolbar/toolbar_action_view.h" | 12 #include "chrome/browser/ui/views/toolbar/toolbar_action_view.h" |
12 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
13 #include "content/public/test/test_browser_thread.h" | 14 #include "content/public/test/test_browser_thread.h" |
14 #include "content/public/test/test_web_contents_factory.h" | 15 #include "content/public/test/test_web_contents_factory.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // If the view isn't visible, the overflow button should be pressed for | 225 // If the view isn't visible, the overflow button should be pressed for |
225 // popups. | 226 // popups. |
226 view.SetVisible(false); | 227 view.SetVisible(false); |
227 controller.ShowPopup(true); | 228 controller.ShowPopup(true); |
228 EXPECT_EQ(views::Button::STATE_NORMAL, view.state()); | 229 EXPECT_EQ(views::Button::STATE_NORMAL, view.state()); |
229 EXPECT_EQ(views::Button::STATE_PRESSED, overflow_button.state()); | 230 EXPECT_EQ(views::Button::STATE_PRESSED, overflow_button.state()); |
230 controller.HidePopup(); | 231 controller.HidePopup(); |
231 EXPECT_EQ(views::Button::STATE_NORMAL, view.state()); | 232 EXPECT_EQ(views::Button::STATE_NORMAL, view.state()); |
232 EXPECT_EQ(views::Button::STATE_NORMAL, overflow_button.state()); | 233 EXPECT_EQ(views::Button::STATE_NORMAL, overflow_button.state()); |
233 } | 234 } |
OLD | NEW |