Chromium Code Reviews| Index: media/video/capture/mac/video_capture_device_unittest_helper_mac.mm |
| diff --git a/media/video/capture/mac/video_capture_device_unittest_helper_mac.mm b/media/video/capture/mac/video_capture_device_unittest_helper_mac.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f2c9b5c767d67d95f4e31b76a2b49ef820edc344 |
| --- /dev/null |
| +++ b/media/video/capture/mac/video_capture_device_unittest_helper_mac.mm |
| @@ -0,0 +1,18 @@ |
| +// Copyright (c) 2011 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 "media/video/capture/video_capture_device_unittest_helper.h" |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +namespace media { |
| + |
| +void ExecuteRunLoop() { |
| + const int run_loop_timeout = 1; |
|
dmac
2011/10/14 23:31:35
are you sure 1 second is enough? See comment about
mflodman_chromium_OOO
2011/10/16 21:58:38
File removed.
|
| + NSDate *loopUntil = [NSDate dateWithTimeIntervalSinceNow:run_loop_timeout]; |
| + [[NSRunLoop mainRunLoop] runMode: NSDefaultRunLoopMode |
|
dmac
2011/10/14 23:31:35
no space between : and NSDefaultRunLoopMode
mflodman_chromium_OOO
2011/10/16 21:58:38
File removed.
|
| + beforeDate:loopUntil]; |
| +} |
| + |
| +} // namespace |