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..fd58853ce715ae7117d9a549c9c1330391527533 100644 |
--- a/ui/views/test/views_test_helper_mac.h |
+++ b/ui/views/test/views_test_helper_mac.h |
@@ -12,6 +12,7 @@ |
namespace ui { |
namespace test { |
+class ScopedFakeFullKeyboardAccess; |
class ScopedFakeNSWindowFocus; |
class ScopedFakeNSWindowFullscreen; |
} |
@@ -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); |
}; |