OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/status/accessibility_menu_button.h" | 5 #include "chrome/browser/chromeos/status/accessibility_menu_button.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 7 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
8 #include "chrome/browser/chromeos/frame/browser_view.h" | 8 #include "chrome/browser/chromeos/frame/browser_view.h" |
9 #include "chrome/browser/chromeos/status/status_area_view.h" | 9 #include "chrome/browser/chromeos/status/status_area_view.h" |
10 #include "chrome/browser/chromeos/view_ids.h" | 10 #include "chrome/browser/chromeos/view_ids.h" |
11 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
14 | 14 |
15 #if defined(USE_AURA) | 15 #if defined(USE_AURA) |
16 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h" | 16 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" |
17 #endif | 17 #endif |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 class AccessibilityMenuButtonTest : public InProcessBrowserTest { | 21 class AccessibilityMenuButtonTest : public InProcessBrowserTest { |
22 protected: | 22 protected: |
23 AccessibilityMenuButtonTest() : InProcessBrowserTest() { | 23 AccessibilityMenuButtonTest() : InProcessBrowserTest() { |
24 } | 24 } |
25 | 25 |
26 const AccessibilityMenuButton* GetAccessibilityMenuButton() { | 26 const AccessibilityMenuButton* GetAccessibilityMenuButton() { |
(...skipping 14 matching lines...) Expand all Loading... |
41 ASSERT_TRUE(button != NULL); | 41 ASSERT_TRUE(button != NULL); |
42 | 42 |
43 accessibility::EnableSpokenFeedback(true, NULL); | 43 accessibility::EnableSpokenFeedback(true, NULL); |
44 EXPECT_TRUE(button->visible()); | 44 EXPECT_TRUE(button->visible()); |
45 | 45 |
46 accessibility::EnableSpokenFeedback(false, NULL); | 46 accessibility::EnableSpokenFeedback(false, NULL); |
47 EXPECT_FALSE(button->visible()); | 47 EXPECT_FALSE(button->visible()); |
48 } | 48 } |
49 | 49 |
50 } // namespace chromeos | 50 } // namespace chromeos |
OLD | NEW |