Changeset 89962 in vbox for trunk/src/VBox/Devices/Audio/testcase/tstAudioTestService.cpp
- Timestamp:
- Jun 30, 2021 7:02:07 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/testcase/tstAudioTestService.cpp
r89805 r89962 76 76 77 77 ATSSERVER Srv; 78 rc = AudioTestSvc Init(&Srv, "127.0.0.1", ATS_TCP_HOST_DEFAULT_PORT, &Callbacks);78 rc = AudioTestSvcCreate(&Srv); 79 79 RTTEST_CHECK_RC_OK(hTest, rc); 80 80 if (RT_SUCCESS(rc)) 81 81 { 82 rc = AudioTestSvc Start(&Srv);82 rc = AudioTestSvcInit(&Srv, &Callbacks); 83 83 RTTEST_CHECK_RC_OK(hTest, rc); 84 84 if (RT_SUCCESS(rc)) 85 85 { 86 rc = AudioTestSvc ClientConnect(&Client, "127.0.0.1", ATS_TCP_HOST_DEFAULT_PORT);86 rc = AudioTestSvcStart(&Srv); 87 87 RTTEST_CHECK_RC_OK(hTest, rc); 88 if (RT_SUCCESS(rc)) 89 { 90 RTGETOPTUNION Val; 91 RT_ZERO(Val); 92 93 Val.psz = ATS_TCP_DEF_CONNECT_HOST_ADDR_STR; 94 rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_ADDRESS, &Val); 95 AssertRC(rc); 96 97 Val.u16 = ATS_TCP_DEF_CONNECT_PORT_HOST_PORT_FWD; 98 rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_PORT, &Val); 99 AssertRC(rc); 100 101 rc = AudioTestSvcClientConnect(&Client); 102 RTTEST_CHECK_RC_OK(hTest, rc); 103 } 88 104 } 89 105 }
Note:
See TracChangeset
for help on using the changeset viewer.