Migrates AudioVideoManagement to generated rtiddsgen API
Converts accessor calls to plain member access across avm service and plugin.
This commit is contained in:
29 files changed
+308
-295
No files matched your search
+19
-19
@@ -84,14 +84,14 @@ void AvmVcaTests::create()
|
||||
{
|
||||
CnrTvcProfile createRequest;
|
||||
|
||||
createRequest.id(0); // create
|
||||
createRequest.exerciseId(m_exerciseId);
|
||||
createRequest.operatorId(m_operatorId);
|
||||
createRequest.id = 0; // create
|
||||
createRequest.exerciseId = m_exerciseId;
|
||||
createRequest.operatorId = m_operatorId;
|
||||
|
||||
createRequest.data().resize(3);
|
||||
createRequest.data()[0] = CnrTvcProfileData(m_cnrConfigIds.at(0), RadioSystem::Cnr);
|
||||
createRequest.data()[1] = CnrTvcProfileData(m_tvcConfigIds.at(0), RadioSystem::Tvc);
|
||||
createRequest.data()[2] = CnrTvcProfileData(m_cnrConfigIds.at(1), RadioSystem::Cnr);
|
||||
createRequest.data.resize(3);
|
||||
createRequest.data[0] = CnrTvcProfileData(m_cnrConfigIds.at(0), RadioSystem::Cnr);
|
||||
createRequest.data[1] = CnrTvcProfileData(m_tvcConfigIds.at(0), RadioSystem::Tvc);
|
||||
createRequest.data[2] = CnrTvcProfileData(m_cnrConfigIds.at(1), RadioSystem::Cnr);
|
||||
|
||||
m_modifyReplyReceived = false;
|
||||
bool status = m_ftc->modifyCnrTvcProfileRequest(createRequest, this);
|
||||
@@ -100,7 +100,7 @@ void AvmVcaTests::create()
|
||||
QVERIFY(m_circuitId > 0);
|
||||
|
||||
CnrTvcProfile expected = createRequest;
|
||||
expected.id(m_circuitId);
|
||||
expected.id = m_circuitId;
|
||||
QTRY_COMPARE(m_dtc->cnrTvcProfile(m_circuitId), expected);
|
||||
}
|
||||
|
||||
@@ -108,21 +108,21 @@ void AvmVcaTests::modify()
|
||||
{
|
||||
CnrTvcProfile request;
|
||||
|
||||
request.id(m_circuitId); // modify
|
||||
request.exerciseId(m_exerciseId);
|
||||
request.operatorId(m_operatorId);
|
||||
request.id = m_circuitId; // modify
|
||||
request.exerciseId = m_exerciseId;
|
||||
request.operatorId = m_operatorId;
|
||||
|
||||
request.data().resize(4);
|
||||
request.data()[0] = CnrTvcProfileData(m_tvcConfigIds.at(0), RadioSystem::Tvc);
|
||||
request.data()[1] = CnrTvcProfileData(m_tvcConfigIds.at(1), RadioSystem::Tvc);
|
||||
request.data()[2] = CnrTvcProfileData(m_cnrConfigIds.at(2), RadioSystem::Cnr);
|
||||
request.data()[3] = CnrTvcProfileData(m_cnrConfigIds.at(1), RadioSystem::Cnr);
|
||||
request.data.resize(4);
|
||||
request.data[0] = CnrTvcProfileData(m_tvcConfigIds.at(0), RadioSystem::Tvc);
|
||||
request.data[1] = CnrTvcProfileData(m_tvcConfigIds.at(1), RadioSystem::Tvc);
|
||||
request.data[2] = CnrTvcProfileData(m_cnrConfigIds.at(2), RadioSystem::Cnr);
|
||||
request.data[3] = CnrTvcProfileData(m_cnrConfigIds.at(1), RadioSystem::Cnr);
|
||||
|
||||
m_modifyReplyReceived = false;
|
||||
bool status = m_ftc->modifyCnrTvcProfileRequest(request, this);
|
||||
QVERIFY(status);
|
||||
QTRY_VERIFY(m_modifyReplyReceived);
|
||||
QCOMPARE(m_circuitId, request.id());
|
||||
QCOMPARE(m_circuitId, request.id);
|
||||
|
||||
CnrTvcProfile expected = request;
|
||||
QTRY_COMPARE(m_dtc->cnrTvcProfile(m_circuitId), expected);
|
||||
@@ -131,13 +131,13 @@ void AvmVcaTests::modify()
|
||||
void AvmVcaTests::remove()
|
||||
{
|
||||
Core::RemoveElementRequest request;
|
||||
request.id(m_circuitId);
|
||||
request.id = m_circuitId;
|
||||
|
||||
m_removeReplyReceived = false;
|
||||
bool status = m_ftc->removeCnrTvcProfileRequest(request, this);
|
||||
QVERIFY(status);
|
||||
QTRY_VERIFY(m_removeReplyReceived);
|
||||
QCOMPARE(m_circuitId, request.id());
|
||||
QCOMPARE(m_circuitId, request.id);
|
||||
|
||||
CnrTvcProfile expected;
|
||||
QTRY_COMPARE(m_dtc->cnrTvcProfile(m_circuitId), expected);
|
||||
|
||||
Reference in new issue
Block a user