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

Unified Diff: ui/views/test/views_test_helper_mac.h

Issue 1782773002: MacViews: Fix ViewTest.HandleAccelerator by faking window activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delay the activatableness Created 4 years, 9 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: 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 31fc0d8d09289aa3220eb97e138729ec3b4719bb..5b3982be855f75470a71a891212cd936fba96247 100644
--- a/ui/views/test/views_test_helper_mac.h
+++ b/ui/views/test/views_test_helper_mac.h
@@ -10,6 +10,9 @@
#include "ui/views/test/views_test_helper.h"
namespace ui {
+namespace test {
+class ScopedFakeNSWindowFocus;
+}
class ScopedAnimationDurationScaleMode;
}
@@ -22,11 +25,14 @@ class ViewsTestHelperMac : public ViewsTestHelper {
// ViewsTestHelper:
void TearDown() override;
+ void EnableFakeWindowActivation() override;
private:
// Disable animations during tests.
scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
+ scoped_ptr<ui::test::ScopedFakeNSWindowFocus> faked_focus_;
+
DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperMac);
};

Powered by Google App Engine
This is Rietveld 408576698