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

Commit a075122f authored by Nate(Qiang) Jiang's avatar Nate(Qiang) Jiang
Browse files

Fix nan Vts test

count shoule be initialize to 0 before test.

Bug: 149709834
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: I47c43571bc3ff91f389a4c9f41e050cc13c104a2
parent 44f9c690
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -439,7 +439,7 @@ class WifiNanIfaceHidlTest : public ::testing::TestWithParam<std::string> {
    // synchronization objects
    // synchronization objects
    std::mutex mtx_;
    std::mutex mtx_;
    std::condition_variable cv_;
    std::condition_variable cv_;
    int count_;
    int count_ = 0;


   protected:
   protected:
    android::sp<::android::hardware::wifi::V1_2::IWifiNanIface> iwifiNanIface;
    android::sp<::android::hardware::wifi::V1_2::IWifiNanIface> iwifiNanIface;
+1 −1
Original line number Original line Diff line number Diff line
@@ -440,7 +440,7 @@ class WifiNanIfaceHidlTest : public ::testing::TestWithParam<std::string> {
    // synchronization objects
    // synchronization objects
    std::mutex mtx_;
    std::mutex mtx_;
    std::condition_variable cv_;
    std::condition_variable cv_;
    int count_;
    int count_ = 0;


   protected:
   protected:
    android::sp<::android::hardware::wifi::V1_4::IWifiNanIface> iwifiNanIface;
    android::sp<::android::hardware::wifi::V1_4::IWifiNanIface> iwifiNanIface;