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