OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/extensions/extension_accessibility_api.h" | 10 #include "chrome/browser/extensions/extension_accessibility_api.h" |
10 #include "chrome/browser/views/accessibility_event_router_views.h" | 11 #include "chrome/browser/views/accessibility_event_router_views.h" |
11 #include "chrome/browser/views/accessible_view_helper.h" | 12 #include "chrome/browser/views/accessible_view_helper.h" |
12 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
13 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
14 #include "chrome/test/testing_profile.h" | 15 #include "chrome/test/testing_profile.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "views/controls/button/native_button.h" | 17 #include "views/controls/button/native_button.h" |
17 #include "views/grid_layout.h" | 18 #include "views/grid_layout.h" |
18 #include "views/widget/root_view.h" | 19 #include "views/widget/root_view.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 focus_manager->AdvanceFocus(false); | 120 focus_manager->AdvanceFocus(false); |
120 EXPECT_EQ(1, focus_event_count_); | 121 EXPECT_EQ(1, focus_event_count_); |
121 | 122 |
122 // Advance to button 1 and check the notification. | 123 // Advance to button 1 and check the notification. |
123 focus_manager->AdvanceFocus(false); | 124 focus_manager->AdvanceFocus(false); |
124 EXPECT_EQ(2, focus_event_count_); | 125 EXPECT_EQ(2, focus_event_count_); |
125 EXPECT_EQ(kButton1ASCII, last_control_name_); | 126 EXPECT_EQ(kButton1ASCII, last_control_name_); |
126 } | 127 } |
127 | 128 |
128 #endif // defined(TOOLKIT_VIEWS) | 129 #endif // defined(TOOLKIT_VIEWS) |
OLD | NEW |