wifi: set join to true in p2p connect tests am: 858665687d

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2743883

Change-Id: I961f6a8cc9569ad401a1df41f252325f94392350
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sunil Ravi 2023-09-07 02:41:10 +00:00 committed by Automerger Merge Worker
commit 2079fbcd04

View file

@ -524,16 +524,12 @@ TEST_P(SupplicantP2pIfaceAidlTest, Flush) {
* Connect
*/
TEST_P(SupplicantP2pIfaceAidlTest, Connect) {
/*
* Auto-join is not enabled before R. After enabling auto-join,
* this should always succeed.
*/
std::string pin;
EXPECT_TRUE(p2p_iface_
->connect(kTestMacAddr, WpsProvisionMethod::PBC,
kTestConnectPin, false, false,
kTestConnectGoIntent, &pin)
.isOk());
std::string pin;
EXPECT_TRUE(p2p_iface_
->connect(kTestMacAddr, WpsProvisionMethod::PBC,
kTestConnectPin, true, false, kTestConnectGoIntent,
&pin)
.isOk());
}
/*
@ -543,7 +539,7 @@ TEST_P(SupplicantP2pIfaceAidlTest, CancelConnect) {
std::string pin;
EXPECT_TRUE(p2p_iface_
->connect(kTestMacAddr, WpsProvisionMethod::PBC,
kTestConnectPin, false, false,
kTestConnectPin, true, false,
kTestConnectGoIntent, &pin)
.isOk());
EXPECT_TRUE(p2p_iface_->cancelConnect().isOk());