| 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..e1652fadb194ffe8b48b45f9f7f63087395476ac
|
| --- /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();
|
| +}
|
| +
|
| +} // namespace test
|
|
|