[WIFI][VTS]: Check for the Logger capability Support am: 020374e42b
am: 65e9588fd2
am: 2d9b9cb1e5
Change-Id: Ia19aa71fcf9dfe4cc99b8a7102b382b312f1d4fb
This commit is contained in:
commit
429bca472e
1 changed files with 8 additions and 2 deletions
|
@ -88,7 +88,10 @@ class WifiChipHidlTest : public ::testing::VtsHalHidlTargetTestBase {
|
|||
uint32_t configureChipForStaIfaceAndGetCapabilities() {
|
||||
configureChipForIfaceType(IfaceType::STA, true);
|
||||
const auto& status_and_caps = HIDL_INVOKE(wifi_chip_, getCapabilities);
|
||||
EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_caps.first.code);
|
||||
if (status_and_caps.first.code != WifiStatusCode::SUCCESS) {
|
||||
EXPECT_EQ(WifiStatusCode::ERROR_NOT_SUPPORTED, status_and_caps.first.code);
|
||||
return 0;
|
||||
}
|
||||
return status_and_caps.second;
|
||||
}
|
||||
|
||||
|
@ -193,7 +196,10 @@ TEST_F(WifiChipHidlTest, ConfigureChip) {
|
|||
TEST_F(WifiChipHidlTest, GetCapabilities) {
|
||||
configureChipForIfaceType(IfaceType::STA, true);
|
||||
const auto& status_and_caps = HIDL_INVOKE(wifi_chip_, getCapabilities);
|
||||
EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_caps.first.code);
|
||||
if (status_and_caps.first.code != WifiStatusCode::SUCCESS) {
|
||||
EXPECT_EQ(WifiStatusCode::ERROR_NOT_SUPPORTED, status_and_caps.first.code);
|
||||
return;
|
||||
}
|
||||
EXPECT_NE(0u, status_and_caps.second);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue