mmappfw_plat/qt_telephony_multimedia_service_api/tsrc/qtmsvoiptest/qtmsvoiptest.cpp
equal
deleted
inserted
replaced
776 #ifndef __WINSCW__ |
776 #ifndef __WINSCW__ |
777 QTest::newRow("G711")<<QTMS_FORMAT_G711; |
777 QTest::newRow("G711")<<QTMS_FORMAT_G711; |
778 QTest::newRow("G729")<<QTMS_FORMAT_G729; |
778 QTest::newRow("G729")<<QTMS_FORMAT_G729; |
779 QTest::newRow("iLBC")<<QTMS_FORMAT_ILBC; |
779 QTest::newRow("iLBC")<<QTMS_FORMAT_ILBC; |
780 QTest::newRow("AMR")<<QTMS_FORMAT_AMR; |
780 QTest::newRow("AMR")<<QTMS_FORMAT_AMR; |
781 #endif |
781 #endif |
782 QTest::newRow("PCM") << QTMS_FORMAT_PCM; |
782 QTest::newRow("PCM") << QTMS_FORMAT_PCM; |
783 } |
783 } |
784 |
784 |
785 void QTmsVoipTest::CreateFormat() |
785 void QTmsVoipTest::CreateFormat() |
786 { |
786 { |
1451 QTMSAudioOutput current; |
1451 QTMSAudioOutput current; |
1452 status = m_Routing->GetOutput(current); |
1452 status = m_Routing->GetOutput(current); |
1453 DisplayDevice(current); |
1453 DisplayDevice(current); |
1454 |
1454 |
1455 QVERIFY(status == QTMS_RESULT_SUCCESS); |
1455 QVERIFY(status == QTMS_RESULT_SUCCESS); |
1456 #ifndef __WINSCW__ |
1456 #ifndef __WINSCW__ |
1457 QCOMPARE(routing,current); |
1457 QCOMPARE(routing,current); |
1458 #endif |
1458 #endif |
1459 StopDnlink(); |
1459 StopDnlink(); |
1460 } |
1460 } |
1461 } |
1461 } |
1569 } |
1569 } |
1570 |
1570 |
1571 void QTmsVoipTest::ProcessBuffer(const QTMSBuffer* buffer) |
1571 void QTmsVoipTest::ProcessBuffer(const QTMSBuffer* buffer) |
1572 { |
1572 { |
1573 //TODO: add loopback test |
1573 //TODO: add loopback test |
1574 #ifdef __TEST_CODE_COVERAGE__ |
1574 #ifdef __TEST_CODE_COVERAGE__ |
1575 QTMSBuffer* recBuf(NULL); |
1575 QTMSBuffer* recBuf(NULL); |
1576 recBuf = const_cast<QTMS::QTMSBuffer*> (buffer); |
1576 recBuf = const_cast<QTMS::QTMSBuffer*> (buffer); |
1577 if (m_ClientSink) { |
1577 if (m_ClientSink) { |
1578 static_cast<QTMSClientSink*> (m_ClientSink)->BufferProcessed(recBuf); |
1578 static_cast<QTMSClientSink*> (m_ClientSink)->BufferProcessed(recBuf); |
1579 } |
1579 } |