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

Commit ef3d96d8 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

csis: Fix failing test_set_desired_size

Fixing typo issue in the test where instead of group size, the
sizeof(g_1) was tested.

Also since test_set_desired_size and test_get_desired_size does same,
this test was merged to test_set_get_desired_size

Bug: 262345129
Test: atest BluetoothInstrumentationTests
Test: atest bluetooth_csis_test
Tag: #feature
Merged-In: I34a42966f3457f98331fccfc933f64441de26ca5
Change-Id: I34a42966f3457f98331fccfc933f64441de26ca5
(cherry picked from commit 936a36b0)
parent f7cfc29e
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -758,13 +758,7 @@ TEST_F(CsisClientTest, test_add_device_to_group) {
  ASSERT_FALSE(g_1->IsEmpty());
}

TEST_F(CsisClientTest, test_set_desired_size) {
  auto g_1 = std::make_shared<CsisGroup>(666, bluetooth::Uuid::kEmpty);
  g_1->SetDesiredSize(10);
  ASSERT_EQ((int)sizeof(g_1), 16);
}

TEST_F(CsisClientTest, test_get_desired_size) {
TEST_F(CsisClientTest, test_get_set_desired_size) {
  auto g_1 = std::make_shared<CsisGroup>(666, bluetooth::Uuid::kEmpty);
  g_1->SetDesiredSize(10);
  ASSERT_EQ(g_1->GetDesiredSize(), 10);