Loading audio/aidl/sounddose/vts/VtsHalSoundDoseFactoryTargetTest.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ class SoundDoseFactory : public testing::TestWithParam<std::string> { std::shared_ptr<ISoundDoseFactory> soundDoseFactory; }; // @VsrTest = VSR-5.5-002.001 TEST_P(SoundDoseFactory, GetSoundDoseForSameModule) { const std::string module = "primary"; Loading audio/aidl/vts/VtsHalAudioCoreModuleTargetTest.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -3532,6 +3532,7 @@ ndk::ScopedAStatus AudioCoreSoundDose::NoOpHalSoundDoseCallback::onNewMelValues( return ndk::ScopedAStatus::ok(); } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, SameInstance) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3543,6 +3544,7 @@ TEST_P(AudioCoreSoundDose, SameInstance) { << "getSoundDose must return the same interface instance across invocations"; } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, GetSetOutputRs2UpperBound) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3557,6 +3559,7 @@ TEST_P(AudioCoreSoundDose, GetSetOutputRs2UpperBound) { EXPECT_TRUE(isSupported) << "Getting/Setting RS2 upper bound must be supported"; } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, CheckDefaultRs2UpperBound) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3567,6 +3570,7 @@ TEST_P(AudioCoreSoundDose, CheckDefaultRs2UpperBound) { EXPECT_EQ(rs2Value, ISoundDose::DEFAULT_MAX_RS2); } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, RegisterSoundDoseCallbackTwiceThrowsException) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3577,6 +3581,7 @@ TEST_P(AudioCoreSoundDose, RegisterSoundDoseCallbackTwiceThrowsException) { << "Registering sound dose callback twice should throw EX_ILLEGAL_STATE"; } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, RegisterSoundDoseNullCallbackThrowsException) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading Loading
audio/aidl/sounddose/vts/VtsHalSoundDoseFactoryTargetTest.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ class SoundDoseFactory : public testing::TestWithParam<std::string> { std::shared_ptr<ISoundDoseFactory> soundDoseFactory; }; // @VsrTest = VSR-5.5-002.001 TEST_P(SoundDoseFactory, GetSoundDoseForSameModule) { const std::string module = "primary"; Loading
audio/aidl/vts/VtsHalAudioCoreModuleTargetTest.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -3532,6 +3532,7 @@ ndk::ScopedAStatus AudioCoreSoundDose::NoOpHalSoundDoseCallback::onNewMelValues( return ndk::ScopedAStatus::ok(); } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, SameInstance) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3543,6 +3544,7 @@ TEST_P(AudioCoreSoundDose, SameInstance) { << "getSoundDose must return the same interface instance across invocations"; } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, GetSetOutputRs2UpperBound) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3557,6 +3559,7 @@ TEST_P(AudioCoreSoundDose, GetSetOutputRs2UpperBound) { EXPECT_TRUE(isSupported) << "Getting/Setting RS2 upper bound must be supported"; } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, CheckDefaultRs2UpperBound) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3567,6 +3570,7 @@ TEST_P(AudioCoreSoundDose, CheckDefaultRs2UpperBound) { EXPECT_EQ(rs2Value, ISoundDose::DEFAULT_MAX_RS2); } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, RegisterSoundDoseCallbackTwiceThrowsException) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading @@ -3577,6 +3581,7 @@ TEST_P(AudioCoreSoundDose, RegisterSoundDoseCallbackTwiceThrowsException) { << "Registering sound dose callback twice should throw EX_ILLEGAL_STATE"; } // @VsrTest = VSR-5.5-002.001 TEST_P(AudioCoreSoundDose, RegisterSoundDoseNullCallbackThrowsException) { if (soundDose == nullptr) { GTEST_SKIP() << "SoundDose is not supported"; Loading