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

Commit 0e7fb13d authored by Sergio Giro's avatar Sergio Giro Committed by Bill Yi
Browse files

libutils: fix compile error in SharedBufferTest

Change-Id: Ib1185d417457d03efa102989a64b5b5e4eb5c82a
parent 8e2c8208
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,13 +16,13 @@

#define __STDC_LIMIT_MACROS

#include <utils/SharedBuffer.h>

#include <gtest/gtest.h>

#include <memory>
#include <stdint.h>

#include "SharedBuffer.h"

TEST(SharedBufferTest, TestAlloc) {
  EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), "");
  EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), "");