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

Commit 66746818 authored by Chris Manton's avatar Chris Manton
Browse files

gdx_unittest: Properly align array dimensions

Bug: 330395785
Test: atest bluetooth_test_gdx_unit
Flag: EXEMPT, Test Infrastructure
Change-Id: Ie3f9bd86bf623f8fb73eaf4a2b27f5898091a5c3
parent 0442f396
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -895,7 +895,8 @@ class BtPropertyMultiAllocationTest : public testing::Test {
  void TearDown() override {}

  std::vector<std::future<std::vector<std::shared_ptr<BtProperty>>>> future_vector;
  bt_property_t bt_properties[kNumberTestedProperties][kNumThreads] = {};

  bt_property_t bt_properties[kNumThreads][kNumberTestedProperties] = {};

  std::vector<std::shared_ptr<BtProperty>> properties;
};
@@ -904,7 +905,7 @@ TEST_F(BtPropertyMultiAllocationTest, async_data_multi) {
  for (size_t i = 0; i < kNumThreads; i++) {
    future_vector.push_back(std::async(std::launch::async, [i]() {
      std::vector<std::shared_ptr<BtProperty>> properties;
      properties.push_back(RemoteDeviceTimestamp::Create((uint32_t)i));
      properties.emplace_back(RemoteDeviceTimestamp::Create((uint32_t)i));
      return properties;
    }));
  }