Chromium Code Reviews| Index: ui/base/test/use_interactive_test_case_mac.mm |
| diff --git a/ui/base/test/use_interactive_test_case_mac.mm b/ui/base/test/use_interactive_test_case_mac.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b3a07a7148accb959116816acc04bb0694d76c98 |
| --- /dev/null |
| +++ b/ui/base/test/use_interactive_test_case_mac.mm |
| @@ -0,0 +1,18 @@ |
| +// 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/use_interactive_test_case.h" |
| + |
| +#include <Cocoa/Cocoa.h> |
|
tapted
2016/10/17 23:44:51
nit: import
Patti Lor
2016/10/18 03:44:26
Done.
|
| + |
| +#include "base/run_loop.h" |
| + |
| +namespace test { |
| + |
| +void RunTestInteractively() { |
| + [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; |
| + [NSApp activateIgnoringOtherApps:YES]; |
| + base::RunLoop().Run(); |
| +} |
| +} |
|
tapted
2016/10/17 23:44:51
nit: blank line before + " // namespace test"
Patti Lor
2016/10/18 03:44:26
Done.
|