Loading wifi/supplicant/1.0/vts/functional/supplicant_p2p_iface_hidl_test.cpp +26 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ constexpr char kTestConnectPin[] = "34556665"; constexpr char kTestGroupIfName[] = "TestGroup"; constexpr uint32_t kTestConnectGoIntent = 6; constexpr uint32_t kTestFindTimeout = 5; constexpr uint32_t kTestSetGroupIdleTimeout = 6; constexpr SupplicantNetworkId kTestNetworkId = 5; constexpr uint32_t kTestChannel = 1; constexpr uint32_t kTestOperatingClass = 81; Loading Loading @@ -429,3 +430,28 @@ TEST_F(SupplicantP2pIfaceHidlTest, SetMiracastMode) { status.code); }); } /* * SetGroupIdle */ TEST_F(SupplicantP2pIfaceHidlTest, SetGroupIdle) { // This is not going to work with fake values. EXPECT_NE(SupplicantStatusCode::SUCCESS, HIDL_INVOKE(p2p_iface_, setGroupIdle, kTestGroupIfName, kTestSetGroupIdleTimeout) .code); } /* * SetPowerSave */ TEST_F(SupplicantP2pIfaceHidlTest, SetPowerSave) { // This is not going to work with fake values. EXPECT_NE( SupplicantStatusCode::SUCCESS, HIDL_INVOKE(p2p_iface_, setPowerSave, kTestGroupIfName, true).code); // This is not going to work with fake values. EXPECT_NE( SupplicantStatusCode::SUCCESS, HIDL_INVOKE(p2p_iface_, setPowerSave, kTestGroupIfName, false).code); } Loading
wifi/supplicant/1.0/vts/functional/supplicant_p2p_iface_hidl_test.cpp +26 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ constexpr char kTestConnectPin[] = "34556665"; constexpr char kTestGroupIfName[] = "TestGroup"; constexpr uint32_t kTestConnectGoIntent = 6; constexpr uint32_t kTestFindTimeout = 5; constexpr uint32_t kTestSetGroupIdleTimeout = 6; constexpr SupplicantNetworkId kTestNetworkId = 5; constexpr uint32_t kTestChannel = 1; constexpr uint32_t kTestOperatingClass = 81; Loading Loading @@ -429,3 +430,28 @@ TEST_F(SupplicantP2pIfaceHidlTest, SetMiracastMode) { status.code); }); } /* * SetGroupIdle */ TEST_F(SupplicantP2pIfaceHidlTest, SetGroupIdle) { // This is not going to work with fake values. EXPECT_NE(SupplicantStatusCode::SUCCESS, HIDL_INVOKE(p2p_iface_, setGroupIdle, kTestGroupIfName, kTestSetGroupIdleTimeout) .code); } /* * SetPowerSave */ TEST_F(SupplicantP2pIfaceHidlTest, SetPowerSave) { // This is not going to work with fake values. EXPECT_NE( SupplicantStatusCode::SUCCESS, HIDL_INVOKE(p2p_iface_, setPowerSave, kTestGroupIfName, true).code); // This is not going to work with fake values. EXPECT_NE( SupplicantStatusCode::SUCCESS, HIDL_INVOKE(p2p_iface_, setPowerSave, kTestGroupIfName, false).code); }