Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2230)

Unified Diff: chrome/test/base/in_process_browser_test.h

Issue 2808823002: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (comments) Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/in_process_browser_test.h
diff --git a/chrome/test/base/in_process_browser_test.h b/chrome/test/base/in_process_browser_test.h
index d7bb9d152f7f18488643d68fefbd73aca6c54be6..8cc41934365803c7601f01a71253d106589f3ae6 100644
--- a/chrome/test/base/in_process_browser_test.h
+++ b/chrome/test/base/in_process_browser_test.h
@@ -17,6 +17,7 @@
#include "storage/browser/quota/quota_settings.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/page_transition_types.h"
+#include "ui/base/test/scoped_fake_full_keyboard_access.h"
namespace base {
@@ -264,6 +265,12 @@ class InProcessBrowserTest : public content::BrowserTestBase {
#if defined(OS_MACOSX)
base::mac::ScopedNSAutoreleasePool* autorelease_pool_;
std::unique_ptr<ScopedBundleSwizzlerMac> bundle_swizzler_;
+
+ // 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.
+ ui::test::ScopedFakeFullKeyboardAccess faked_full_keyboard_access_;
#endif // OS_MACOSX
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698