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

Unified Diff: media/video/capture/mac/video_capture_device_unittest_helper_mac.mm

Issue 8177008: Adding VideoCaptureDevice for Mac. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Unittest changes to run on Mac OS X. Created 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698