Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c941fbb authored by Sunil Ravi's avatar Sunil Ravi
Browse files

Wifi: check TLSV1.3 support in TLS test

Added the check for TLSV1.3 feature support in
SetMinimumTlsVersionEapPhase1Param test

Bug: 261922145
Test: atest SupplicantStaNetworkAidlTest
Change-Id: I26e7796d4d83e72e0098d5aa6ee520824bda23b1
parent 99ba5507
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -806,7 +806,15 @@ TEST_P(SupplicantStaNetworkAidlTest, SetRoamingConsortiumSelection) {
 * SetMinimumTlsVersionEapPhase1Param
 */
TEST_P(SupplicantStaNetworkAidlTest, SetMinimumTlsVersionEapPhase1Param) {
    EXPECT_TRUE(sta_network_->setMinimumTlsVersionEapPhase1Param(TlsVersion::TLS_V1_3).isOk());
    WpaDriverCapabilitiesMask caps;
    EXPECT_TRUE(sta_iface_->getWpaDriverCapabilities(&caps).isOk());
    const bool tlsV13Supported = !!(static_cast<uint32_t>(caps) &
                                    static_cast<uint32_t>(WpaDriverCapabilitiesMask::TLS_V1_3));
    LOG(INFO) << "TLS_V1_3 Supported: " << tlsV13Supported;

    // Operation will succeed if TLS_V1_3 is supported, or fail otherwise.
    EXPECT_EQ(sta_network_->setMinimumTlsVersionEapPhase1Param(TlsVersion::TLS_V1_3).isOk(),
              tlsV13Supported);
}

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SupplicantStaNetworkAidlTest);