Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/base/test/user_interactive_test_case.h" | |
| 6 | |
| 7 #import <Cocoa/Cocoa.h> | |
| 8 | |
| 9 #include "base/run_loop.h" | |
| 10 | |
| 11 namespace test { | |
| 12 | |
| 13 void RunTestInteractively() { | |
| 14 [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; | |
| 15 [NSApp activateIgnoringOtherApps:YES]; | |
| 16 base::RunLoop().Run(); | |
| 17 } | |
| 18 | |
| 19 } | |
|
tapted
2016/10/18 23:49:19
nit: // namespace test
Patti Lor
2016/10/20 00:58:06
Done.
| |
| OLD | NEW |