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

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 (rebase) 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..da9f8a0be3e35e04cd5ecbb9009f1f9b3271cf31 100644
--- a/chrome/test/base/in_process_browser_test.h
+++ b/chrome/test/base/in_process_browser_test.h
@@ -18,6 +18,14 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/page_transition_types.h"
+#if defined(OS_MACOSX)
+namespace ui {
tapted 2017/04/19 03:31:07 nit: sort namespaces ("ui" after "base") edit: ac
varkha 2017/04/19 08:34:17 Done.
+namespace test {
+class ScopedFakeFullKeyboardAccess;
+} // namespace test
+} // namespace ui
+#endif // defined(OS_MACOSX)
+
namespace base {
class CommandLine;
@@ -264,6 +272,13 @@ 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.
+ std::unique_ptr<ui::test::ScopedFakeFullKeyboardAccess>
+ faked_full_keyboard_access_;
#endif // OS_MACOSX
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698