Changeset 90518 in vbox for trunk/src/VBox/Devices/Audio/testcase/tstAudioTestService.cpp
- Timestamp:
- Aug 4, 2021 1:19:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/testcase/tstAudioTestService.cpp
r89962 r90518 80 80 if (RT_SUCCESS(rc)) 81 81 { 82 RTGETOPTUNION Val; 83 RT_ZERO(Val); 84 85 Val.psz = "server"; 86 rc = AudioTestSvcHandleOption(&Srv, ATSTCPOPT_MODE, &Val); 87 RTTEST_CHECK_RC_OK(hTest, rc); 88 89 Val.u16 = ATS_TCP_DEF_BIND_PORT_HOST; 90 rc = AudioTestSvcHandleOption(&Srv, ATSTCPOPT_BIND_PORT, &Val); 91 RTTEST_CHECK_RC_OK(hTest, rc); 92 82 93 rc = AudioTestSvcInit(&Srv, &Callbacks); 83 94 RTTEST_CHECK_RC_OK(hTest, rc); … … 88 99 if (RT_SUCCESS(rc)) 89 100 { 90 RTGETOPTUNION Val; 91 RT_ZERO(Val); 101 rc = AudioTestSvcClientCreate(&Client); 102 RTTEST_CHECK_RC_OK(hTest, rc); 103 104 Val.psz = "client"; 105 rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_MODE, &Val); 106 RTTEST_CHECK_RC_OK(hTest, rc); 92 107 93 108 Val.psz = ATS_TCP_DEF_CONNECT_HOST_ADDR_STR; 94 109 rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_ADDRESS, &Val); 95 AssertRC(rc);110 RTTEST_CHECK_RC_OK(hTest, rc); 96 111 97 Val.u16 = ATS_TCP_DEF_CONNECT_PORT_ HOST_PORT_FWD;112 Val.u16 = ATS_TCP_DEF_CONNECT_PORT_GUEST; 98 113 rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_PORT, &Val); 99 AssertRC(rc);114 RTTEST_CHECK_RC_OK(hTest, rc); 100 115 101 116 rc = AudioTestSvcClientConnect(&Client);
Note:
See TracChangeset
for help on using the changeset viewer.