286 ADD_TEST_STEP_ISO_CPP(CHWRMTest, TestFmTxPowerSaveOnInactivityStateL); |
286 ADD_TEST_STEP_ISO_CPP(CHWRMTest, TestFmTxPowerSaveOnInactivityStateL); |
287 ADD_TEST_STEP_ISO_CPP(CHWRMTest, TestFmTxPowerSaveOffL); |
287 ADD_TEST_STEP_ISO_CPP(CHWRMTest, TestFmTxPowerSaveOffL); |
288 ADD_TEST_STEP_ISO_CPP(CHWRMTest, TestFmTxEnableDuringPowersaveL); |
288 ADD_TEST_STEP_ISO_CPP(CHWRMTest, TestFmTxEnableDuringPowersaveL); |
289 |
289 |
290 #endif // INSECURE_AUDIO_POLICY_KEYS |
290 #endif // INSECURE_AUDIO_POLICY_KEYS |
|
291 ADD_TEST_STEP_ISO_CPP(CHWRMTest, TestFmTxGetNextClearFrequencyWithoutEnableL); |
|
292 |
291 |
293 |
292 END_SUITE; |
294 END_SUITE; |
293 } |
295 } |
294 |
296 |
295 // actual test cases |
297 // actual test cases |
4405 void CHWRMTest::TestFmTxGetNextClearFrequencyArrayL() |
4407 void CHWRMTest::TestFmTxGetNextClearFrequencyArrayL() |
4406 { |
4408 { |
4407 INFO_PRINTF1(_L("Start test step: TestFmTxGetNextClearFrequencyArrayL")); |
4409 INFO_PRINTF1(_L("Start test step: TestFmTxGetNextClearFrequencyArrayL")); |
4408 |
4410 |
4409 AddTestStateL(this, &CHWRMTest::FmTxOpenL, KTwoTimeUnits); |
4411 AddTestStateL(this, &CHWRMTest::FmTxOpenL, KTwoTimeUnits); |
4410 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayWhileDisabledL, KOneTimeUnit); |
4412 //AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayWhileDisabledL, KOneTimeUnit); |
4411 AddTestStateL(this, &CHWRMTest::FmTxEnableL, KTwoTimeUnits); |
4413 AddTestStateL(this, &CHWRMTest::FmTxEnableL, KTwoTimeUnits); |
4412 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayErrArgumentMinL, KOneTimeUnit); |
4414 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayErrArgumentMinL, KOneTimeUnit); |
4413 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayErrArgumentMaxL, KOneTimeUnit); |
4415 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayErrArgumentMaxL, KOneTimeUnit); |
4414 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayL, KTwoTimeUnits); |
4416 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyArrayL, KTwoTimeUnits); |
4415 AddTestStateL(this, &CHWRMTest::FmTxDisableFromOnL, KTwoTimeUnits); |
4417 AddTestStateL(this, &CHWRMTest::FmTxDisableFromOnL, KTwoTimeUnits); |
4636 |
4638 |
4637 ExecuteTestL(); |
4639 ExecuteTestL(); |
4638 } |
4640 } |
4639 |
4641 |
4640 #endif // INSECURE_AUDIO_POLICY_KEYS |
4642 #endif // INSECURE_AUDIO_POLICY_KEYS |
|
4643 |
|
4644 void CHWRMTest::TestFmTxGetNextClearFrequencyWithoutEnableL() |
|
4645 { |
|
4646 INFO_PRINTF1(_L("Start test step: TestFmTxGetNextClearFrequencyWithoutEnableL")); |
|
4647 |
|
4648 AddTestStateL(this, &CHWRMTest::FmTxOpenL, KTwoTimeUnits); |
|
4649 AddTestStateL(this, &CHWRMTest::FmTxGetNextClearFrequencyWithoutEnableL, KTwoTimeUnits); |
|
4650 |
|
4651 ExecuteTestL(); |
|
4652 } |
|
4653 |
4641 |
4654 |
4642 void CHWRMTest::InvalidSessionLightL() |
4655 void CHWRMTest::InvalidSessionLightL() |
4643 { |
4656 { |
4644 INFO_PRINTF1(_L("Step state: InvalidSessionLightL")); |
4657 INFO_PRINTF1(_L("Step state: InvalidSessionLightL")); |
4645 |
4658 |
8695 User::LeaveIfError(iAudioRoutedProperty.Set((TInt)aFlag)); |
8708 User::LeaveIfError(iAudioRoutedProperty.Set((TInt)aFlag)); |
8696 } |
8709 } |
8697 #endif // INSECURE_AUDIO_POLICY_KEYS |
8710 #endif // INSECURE_AUDIO_POLICY_KEYS |
8698 |
8711 |
8699 |
8712 |
|
8713 |
|
8714 void CHWRMTest::FmTxGetNextClearFrequencyWithoutEnableL() |
|
8715 { |
|
8716 INFO_PRINTF1(_L("Step state: FmTxGetNextClearFrequencyWithoutEnableL")); |
|
8717 |
|
8718 CHWRMFmTx& fmTx = GetFmTxSessionWithCallbackRegisteredL(); |
|
8719 |
|
8720 ExpectFmTxStatusNotificationL(EFmTxStateOff, EFmTxStateInactive); |
|
8721 ExpectFmTxStatusNotificationL(EFmTxStateInactive, EFmTxStateOff); |
|
8722 |
|
8723 TInt clearFrequency; |
|
8724 fmTx.GetNextClearFrequencyL(clearFrequency); |
|
8725 |
|
8726 // the frequency that is returned is hard coded in the cmockfmtxengine |
|
8727 if (clearFrequency != 89000) |
|
8728 { |
|
8729 User::Leave(KErrGeneral); |
|
8730 } |
|
8731 } |
|
8732 |
|
8733 |
|
8734 |
8700 // |
8735 // |
8701 // THE FOLLOWING STEPS AND STATES TEST LIGHT API DEPENDING ON |
8736 // THE FOLLOWING STEPS AND STATES TEST LIGHT API DEPENDING ON |
8702 // PRODUCT-SPECIFIC PHYSICAL DEVICE CONFIGURATION (FLIP, SLIDER, ETC. |
8737 // PRODUCT-SPECIFIC PHYSICAL DEVICE CONFIGURATION (FLIP, SLIDER, ETC. |
8703 // |
8738 // |
8704 // THEY ARE NOT CURRENTLY USED, BUT MAY BE USEFUL IN FUTURE |
8739 // THEY ARE NOT CURRENTLY USED, BUT MAY BE USEFUL IN FUTURE |