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

Commit 99afa6dc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "libpdx: Fix ThreadLocalBufferTest.InitialValue unittest" into oc-dev

parents 3e7dad57 86a8d340
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -89,13 +89,13 @@ TEST(ThreadLocalBufferTest, ThreadSlots) {
  EXPECT_NE(id1, id2);
}

// TODO(b/36456321): Fix this and enable it again.
// Tests that thread-local buffers are allocated at the first buffer request.
TEST(ThreadLocalBufferTest, DISABLED_InitialValue) {
TEST(ThreadLocalBufferTest, InitialValue) {
  struct TypeTagX;
  using SendSlotX = ThreadLocalSlot<TypeTagX, kSendBufferIndex>;

  auto value1 = ThreadLocalBufferTest::GetSlotValue<SendSlotX>();
  MessageBuffer<SendSlotX>::GetBuffer();
  auto value2 = ThreadLocalBufferTest::GetSlotValue<SendSlotX>();

  EXPECT_EQ(0U, value1);