Index: webrtc/examples/objc/AppRTCDemo/mac/main.m |
diff --git a/webrtc/modules/video_render/test/testAPI/testAPI_android.cc b/webrtc/examples/objc/AppRTCDemo/mac/main.m |
similarity index 55% |
copy from webrtc/modules/video_render/test/testAPI/testAPI_android.cc |
copy to webrtc/examples/objc/AppRTCDemo/mac/main.m |
index c62a62f39aabae3dc98024c6154467fa139eb2b3..23153e6dc7c052fd37b1529be84ffa6c4aac82f5 100644 |
--- a/webrtc/modules/video_render/test/testAPI/testAPI_android.cc |
+++ b/webrtc/examples/objc/AppRTCDemo/mac/main.m |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
+ * Copyright 2014 The WebRTC Project Authors. All rights reserved. |
* |
* Use of this source code is governed by a BSD-style license |
* that can be found in the LICENSE file in the root of the source |
@@ -8,8 +8,15 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
+#import <Cocoa/Cocoa.h> |
+ |
+#import "APPRTCAppDelegate.h" |
+ |
int main(int argc, char* argv[]) { |
- // TODO(leozwang): Video render test app is not ready on android, |
- // make it dummy test now, will add android specific tests |
- return 0; |
+ @autoreleasepool { |
+ [NSApplication sharedApplication]; |
+ APPRTCAppDelegate* delegate = [[APPRTCAppDelegate alloc] init]; |
+ [NSApp setDelegate:delegate]; |
+ [NSApp run]; |
+ } |
} |