Added track C API test

This commit is contained in:
Paul-Louis Ageneau
2020-09-13 15:16:54 +02:00
parent 649a5d0e88
commit d9de5080e5
4 changed files with 220 additions and 12 deletions

View File

@ -24,8 +24,9 @@ using namespace std;
using namespace chrono_literals;
void test_connectivity();
void test_capi();
void test_track();
void test_capi_connectivity();
void test_capi_track();
void test_websocket();
size_t benchmark(chrono::milliseconds duration);
@ -50,11 +51,11 @@ int main(int argc, char **argv) {
return -1;
}
try {
cout << endl << "*** Running WebRTC C API test..." << endl;
test_capi();
cout << "*** Finished WebRTC C API test" << endl;
cout << endl << "*** Running WebRTC C API connectivity test..." << endl;
test_capi_connectivity();
cout << "*** Finished WebRTC C API connectivity test" << endl;
} catch (const exception &e) {
cerr << "WebRTC C API test failed: " << e.what() << endl;
cerr << "WebRTC C API connectivity test failed: " << e.what() << endl;
return -1;
}
#if RTC_ENABLE_MEDIA
@ -66,6 +67,14 @@ int main(int argc, char **argv) {
cerr << "WebRTC Track test failed: " << e.what() << endl;
return -1;
}
try {
cout << endl << "*** Running WebRTC C API track test..." << endl;
test_capi_track();
cout << "*** Finished WebRTC C API track test" << endl;
} catch (const exception &e) {
cerr << "WebRTC C API track test failed: " << e.what() << endl;
return -1;
}
#endif
#if RTC_ENABLE_WEBSOCKET
try {