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

Unified Diff: ui/base/test/user_interactive_test_case_mac.mm

Issue 2382963002: Views: Add two disabled tests for invoking the CC unmask prompt dialog. (Closed)
Patch Set: Give user_interactive_test_case* its own if statement. Created 4 years, 2 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/base/test/user_interactive_test_case_mac.mm
diff --git a/ui/base/test/user_interactive_test_case_mac.mm b/ui/base/test/user_interactive_test_case_mac.mm
new file mode 100644
index 0000000000000000000000000000000000000000..4581c1b6d78f6c7c805363698701a9260d5f9ea8
--- /dev/null
+++ b/ui/base/test/user_interactive_test_case_mac.mm
@@ -0,0 +1,19 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/test/user_interactive_test_case.h"
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/run_loop.h"
+
+namespace test {
+
+void RunTestInteractively() {
+ [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
+ [NSApp activateIgnoringOtherApps:YES];
+ base::RunLoop().Run();
+}
+
+}
tapted 2016/10/18 23:49:19 nit: // namespace test
Patti Lor 2016/10/20 00:58:06 Done.
« ui/base/test/user_interactive_test_case.cc ('K') | « ui/base/test/user_interactive_test_case.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698