Chromium Code Reviews| Index: ui/views/test/views_test_helper_mac.h |
| diff --git a/ui/views/test/views_test_helper_mac.h b/ui/views/test/views_test_helper_mac.h |
| index d30737261a85e2f66ba0b0f047d1e2ad6ce5f3b2..9cf96b724d953011d8e7802b58e4d94218c434ff 100644 |
| --- a/ui/views/test/views_test_helper_mac.h |
| +++ b/ui/views/test/views_test_helper_mac.h |
| @@ -14,6 +14,7 @@ namespace ui { |
| namespace test { |
| class ScopedFakeNSWindowFocus; |
| class ScopedFakeNSWindowFullscreen; |
| +class ScopedFakeFullKeyboardAccess; |
|
tapted
2016/05/04 06:47:38
nit: sort
karandeepb
2016/05/04 07:13:03
Done.
|
| } |
| class ScopedAnimationDurationScaleMode; |
| } |
| @@ -46,6 +47,13 @@ class ViewsTestHelperMac : public ViewsTestHelper { |
| // permitting a unit test to 'fake' toggling fullscreen mode. |
| std::unique_ptr<ui::test::ScopedFakeNSWindowFullscreen> faked_fullscreen_; |
| + // Enable fake full keyboard access by default, so that tests don't depend on |
| + // system setting of the test machine. Also, this helps to make tests on Mac |
| + // more consistent with other platforms, where most views are focusable by |
| + // default. |
| + std::unique_ptr<ui::test::ScopedFakeFullKeyboardAccess> |
| + faked_full_keyboard_access_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperMac); |
| }; |