mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
CSD: Add VSR test annotation
Test: m Bug: 248567177 Change-Id: Ie81669e87e8f7c4898d0ed02477d6661bc4676c5
This commit is contained in:
@@ -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";
|
||||
@@ -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";
|
||||
@@ -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";
|
||||
@@ -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";
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user