diff options
| author | Roshan Pius <rpius@google.com> | 2019-03-27 09:17:32 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-03-27 09:17:32 -0700 |
| commit | 17b3a4f60f9e853de05be9a6c7579459281e43bc (patch) | |
| tree | daae5b3babe5e801d8ca81d1c69db624bf4a0284 /wifi | |
| parent | a7ea00e6d32479549a3ff64ca3a5161153ce46ac (diff) | |
| parent | 9f0bb1815c55c17fb0f6ee47f85ccf79073e442a (diff) | |
| download | android_hardware_interfaces-17b3a4f60f9e853de05be9a6c7579459281e43bc.tar.gz android_hardware_interfaces-17b3a4f60f9e853de05be9a6c7579459281e43bc.tar.bz2 android_hardware_interfaces-17b3a4f60f9e853de05be9a6c7579459281e43bc.zip | |
wifi(vts): Don't enforce interface combination in VTS tests am: f638d0a43a am: 1905955baf
am: 9f0bb1815c
Change-Id: I086016e07ae0d2dd37b11424039ec44f978e58e8
Diffstat (limited to 'wifi')
| -rw-r--r-- | wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp b/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp index 72cafd1e9..1b7e82190 100644 --- a/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp +++ b/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp @@ -361,8 +361,8 @@ TEST_F(WifiChipHidlTest, GetDebugHostWakeReasonStats) { /* * CreateApIface - * Configures the chip in AP mode and ensures that only 1 iface creation - * succeeds. The 2nd iface creation should be rejected. + * Configures the chip in AP mode and ensures that at least 1 iface creation + * succeeds. */ TEST_F(WifiChipHidlTest, CreateApIface) { if (!gEnv->isSoftApOn) return; @@ -371,8 +371,6 @@ TEST_F(WifiChipHidlTest, CreateApIface) { sp<IWifiApIface> iface; EXPECT_EQ(WifiStatusCode::SUCCESS, createApIface(&iface)); EXPECT_NE(nullptr, iface.get()); - - EXPECT_EQ(WifiStatusCode::ERROR_NOT_AVAILABLE, createApIface(&iface)); } /* @@ -460,8 +458,8 @@ TEST_F(WifiChipHidlTest, RemoveApIface) { /* * CreateNanIface - * Configures the chip in NAN mode and ensures that only 1 iface creation - * succeeds. The 2nd iface creation should be rejected. + * Configures the chip in NAN mode and ensures that at least 1 iface creation + * succeeds. */ TEST_F(WifiChipHidlTest, CreateNanIface) { if (!gEnv->isNanOn) return; @@ -470,8 +468,6 @@ TEST_F(WifiChipHidlTest, CreateNanIface) { sp<IWifiNanIface> iface; ASSERT_EQ(WifiStatusCode::SUCCESS, createNanIface(&iface)); EXPECT_NE(nullptr, iface.get()); - - EXPECT_EQ(WifiStatusCode::ERROR_NOT_AVAILABLE, createNanIface(&iface)); } /* @@ -560,8 +556,8 @@ TEST_F(WifiChipHidlTest, RemoveNanIface) { /* * CreateP2pIface - * Configures the chip in P2P mode and ensures that only 1 iface creation - * succeeds. The 2nd iface creation should be rejected. + * Configures the chip in P2P mode and ensures that at least 1 iface creation + * succeeds. */ TEST_F(WifiChipHidlTest, CreateP2pIface) { configureChipForIfaceType(IfaceType::P2P, true); @@ -569,8 +565,6 @@ TEST_F(WifiChipHidlTest, CreateP2pIface) { sp<IWifiP2pIface> iface; EXPECT_EQ(WifiStatusCode::SUCCESS, createP2pIface(&iface)); EXPECT_NE(nullptr, iface.get()); - - EXPECT_EQ(WifiStatusCode::ERROR_NOT_AVAILABLE, createP2pIface(&iface)); } /* @@ -655,8 +649,8 @@ TEST_F(WifiChipHidlTest, RemoveP2pIface) { /* * CreateStaIface - * Configures the chip in STA mode and ensures that only 1 iface creation - * succeeds. The 2nd iface creation should be rejected. + * Configures the chip in STA mode and ensures that at least 1 iface creation + * succeeds. */ TEST_F(WifiChipHidlTest, CreateStaIface) { configureChipForIfaceType(IfaceType::STA, true); @@ -664,8 +658,6 @@ TEST_F(WifiChipHidlTest, CreateStaIface) { sp<IWifiStaIface> iface; EXPECT_EQ(WifiStatusCode::SUCCESS, createStaIface(&iface)); EXPECT_NE(nullptr, iface.get()); - - EXPECT_EQ(WifiStatusCode::ERROR_NOT_AVAILABLE, createStaIface(&iface)); } /* |
