mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
vts: Add vts to test setVoipMode
Bug: 295885471 Test: atest -c VtsHalWifiChipTargetTest Change-Id: I976f80006aeb88bde2ae34ca4f9be72cea727d9e
This commit is contained in:
@@ -39,7 +39,8 @@ cc_test {
|
||||
],
|
||||
static_libs: [
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"libwifi-system-iface",
|
||||
],
|
||||
test_suites: [
|
||||
@@ -64,7 +65,8 @@ cc_test {
|
||||
],
|
||||
static_libs: [
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"libwifi-system-iface",
|
||||
],
|
||||
test_suites: [
|
||||
@@ -89,7 +91,8 @@ cc_test {
|
||||
],
|
||||
static_libs: [
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"libwifi-system-iface",
|
||||
],
|
||||
test_suites: [
|
||||
@@ -114,7 +117,8 @@ cc_test {
|
||||
],
|
||||
static_libs: [
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"libwifi-system-iface",
|
||||
],
|
||||
test_suites: [
|
||||
@@ -139,7 +143,8 @@ cc_test {
|
||||
],
|
||||
static_libs: [
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"libwifi-system-iface",
|
||||
],
|
||||
test_suites: [
|
||||
@@ -163,7 +168,8 @@ cc_library_static {
|
||||
"libnativehelper",
|
||||
],
|
||||
static_libs: [
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"libwifi-system-iface",
|
||||
],
|
||||
}
|
||||
|
||||
@@ -872,6 +872,36 @@ TEST_P(WifiChipAidlTest, CreateBridgedApIfaceAndremoveIfaceInstanceFromBridgedAp
|
||||
EXPECT_EQ(instances_after_remove.size(), 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* SetVoipMode_off
|
||||
* Tests the setVoipMode() API with VoIP mode OFF.
|
||||
*/
|
||||
TEST_P(WifiChipAidlTest, SetVoipMode_off) {
|
||||
configureChipForConcurrencyType(IfaceConcurrencyType::STA);
|
||||
int32_t features = getChipFeatureSet(wifi_chip_);
|
||||
if (features & static_cast<int32_t>(IWifiChip::FeatureSetMask::SET_VOIP_MODE)) {
|
||||
auto status = wifi_chip_->setVoipMode(IWifiChip::VoipMode::OFF);
|
||||
EXPECT_TRUE(status.isOk());
|
||||
} else {
|
||||
GTEST_SKIP() << "setVoipMode() is not supported by vendor.";
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* SetVoipMode_voice
|
||||
* Tests the setVoipMode() API with VoIP mode VOICE.
|
||||
*/
|
||||
TEST_P(WifiChipAidlTest, SetVoipMode_voice) {
|
||||
configureChipForConcurrencyType(IfaceConcurrencyType::STA);
|
||||
int32_t features = getChipFeatureSet(wifi_chip_);
|
||||
if (features & static_cast<int32_t>(IWifiChip::FeatureSetMask::SET_VOIP_MODE)) {
|
||||
auto status = wifi_chip_->setVoipMode(IWifiChip::VoipMode::VOICE);
|
||||
EXPECT_TRUE(status.isOk());
|
||||
} else {
|
||||
GTEST_SKIP() << "setVoipMode() is not supported by vendor.";
|
||||
}
|
||||
}
|
||||
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(WifiChipAidlTest);
|
||||
INSTANTIATE_TEST_SUITE_P(WifiTest, WifiChipAidlTest,
|
||||
testing::ValuesIn(android::getAidlHalInstanceNames(IWifi::descriptor)),
|
||||
|
||||
@@ -36,7 +36,8 @@ cc_test {
|
||||
"android.hardware.wifi@1.4",
|
||||
"android.hardware.wifi@1.5",
|
||||
"android.hardware.wifi@1.6",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"libwifi-system",
|
||||
"libwifi-system-iface",
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
|
||||
@@ -51,7 +51,8 @@ cc_test {
|
||||
"VtsHalWifiV1_0TargetTestUtil",
|
||||
"VtsHalWifiV1_5TargetTestUtil",
|
||||
"VtsHalWifiSupplicantV1_0TargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
],
|
||||
test_suites: [
|
||||
@@ -88,7 +89,8 @@ cc_test {
|
||||
"VtsHalWifiV1_0TargetTestUtil",
|
||||
"VtsHalWifiV1_5TargetTestUtil",
|
||||
"VtsHalWifiSupplicantV1_0TargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
],
|
||||
test_suites: [
|
||||
@@ -125,7 +127,8 @@ cc_test {
|
||||
"VtsHalWifiV1_0TargetTestUtil",
|
||||
"VtsHalWifiV1_5TargetTestUtil",
|
||||
"VtsHalWifiSupplicantV1_0TargetTestUtil",
|
||||
"android.hardware.wifi-V1-ndk",
|
||||
"android.hardware.wifi.common-V1-ndk",
|
||||
"android.hardware.wifi-V2-ndk",
|
||||
"VtsHalWifiTargetTestUtil",
|
||||
],
|
||||
test_suites: [
|
||||
|
||||
Reference in New Issue
Block a user