1270 // Un-Subscribe Events. |
1270 // Un-Subscribe Events. |
1271 mEngine->d->unSubscribeVolumeEvents(); |
1271 mEngine->d->unSubscribeVolumeEvents(); |
1272 } |
1272 } |
1273 |
1273 |
1274 |
1274 |
|
1275 void UT_LcUiEngine::testVolume() |
|
1276 { |
|
1277 MLcVideoPlayer* player = |
|
1278 mEngine->d->mLiveCommsEngine->Session().LocalVideoPlayer(); |
|
1279 |
|
1280 mEngine->d->volume(1); |
|
1281 QCOMPARE( player->LcAudioControl()->LcVolumeL(), 1 ); |
|
1282 |
|
1283 mEngine->d->volume(2); |
|
1284 QCOMPARE( player->LcAudioControl()->LcVolumeL(), 2 ); |
|
1285 |
|
1286 mEngine->d->volume(2); |
|
1287 QCOMPARE( player->LcAudioControl()->LcVolumeL(), 2 ); |
|
1288 } |
|
1289 |
|
1290 |
|
1291 void UT_LcUiEngine::testVolumeValues() |
|
1292 { |
|
1293 LcControlValues volumeData; |
|
1294 MLcVideoPlayer* player = |
|
1295 mEngine->d->mLiveCommsEngine->Session().LocalVideoPlayer(); |
|
1296 mEngine->d->volume(5); |
|
1297 mEngine->volumeValues(volumeData); |
|
1298 |
|
1299 QCOMPARE( volumeData.mMaxValue, lcVolumeMax ); // Hardcoded Value since no getter API yet |
|
1300 QCOMPARE( volumeData.mMinValue, lcVolumeMin ); // Hardcoded Value since no getter API yet |
|
1301 QCOMPARE( volumeData.mValue, 5 ); |
|
1302 } |
|
1303 |
|
1304 |
|
1305 |
|
1306 void UT_LcUiEngine::testvolumeMuted() |
|
1307 { |
|
1308 MLcVideoPlayer* player = |
|
1309 mEngine->d->mLiveCommsEngine->Session().LocalVideoPlayer(); |
|
1310 mEngine->d->volumeMuted(true); |
|
1311 QVERIFY ( player->LcAudioControl()->IsLcAudioMutedL()); |
|
1312 |
|
1313 mEngine->d->volumeMuted(false); |
|
1314 QVERIFY ( !player->LcAudioControl()->IsLcAudioMutedL()); |
|
1315 } |
1275 |
1316 |
1276 // End of file |
1317 // End of file |