/* * Copyright (c) 2011 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 * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #if defined(_WIN32) #include #include #include #include #include #include #elif defined(WEBRTC_LINUX) #include #include #include #include #elif defined(WEBRTC_MAC_INTEL) #import #import #import #import #import "cocoa_renderer.h" #include #include #endif using namespace std; #include #include "testExternalCapture.h" #ifndef WEBRTC_VIDEO_EXTERNAL_CAPTURE_AND_RENDER #include "testPlatformDependent.h" #include "testCameraEncoder.h" #endif #if defined(_WIN32) int _tmain(int argc, _TCHAR* argv[]) #elif defined(WEBRTC_LINUX) int main(int argc, char* argv[]) #elif defined(WEBRTC_MAC_INTEL) int main (int argc, const char * argv[]) #endif { #if defined(WEBRTC_MAC_INTEL) NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; [NSApplication sharedApplication]; #endif int testResult=0; { webrtc::testExternalCapture test; testResult=test.DoTest(); printf("\nExternal capture test result %d\n",testResult); } #ifndef WEBRTC_VIDEO_EXTERNAL_CAPTURE_AND_RENDER { webrtc::testPlatformDependent platformDependent; testResult=platformDependent.DoTest(); printf("\nPlatform dependent test result %d\n",testResult); } { webrtc::testCameraEncoder cameraEncoder; testResult=cameraEncoder.DoTest(); printf("\nCamera encoder test result %d\n",testResult); } #endif getchar(); #if defined (WEBRTC_MAC_INTEL) [pool release]; #endif return 0; }