mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-25 08:29:20 +00:00
Added track C API test
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user