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

Commit 497c7013 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Jakub Pawlowski
Browse files

eatt/unit_test: Extend unit test to verify eatt counter

This will show the problem fixed in next patch

Tag: #feature
Bug: 159786353
Sponsor: jpawlowski@
Test: atest --host net_test_eatt
Change-Id: I977b1f40a8acb8d6a78db6a9e2f802468444910f
parent 28785575
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -96,12 +96,19 @@ class EattTest : public testing::Test {
      }
      i++;
    }

    ASSERT_TRUE(test_tcb.eatt == num_of_accepted_connections);
  }

  void DisconnectEattDevice(void) {
    EXPECT_CALL(l2cap_interface_, DisconnectRequest(_))
        .Times(connected_cids_.size());
    eatt_instance_->Disconnect(test_address);

    for (uint16_t cid : connected_cids_)
      l2cap_app_info_.pL2CA_DisconnectInd_Cb(cid, true);

    ASSERT_TRUE(test_tcb.eatt == 0);
  }

  void SetUp() override {