libutils: fix compile error in SharedBufferTest

Change-Id: Ib1185d417457d03efa102989a64b5b5e4eb5c82a
This commit is contained in:
Sergio Giro 2015-09-23 21:22:14 +01:00 committed by Bill Yi
parent 8e2c820819
commit 0e7fb13d57

View file

@ -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)), "");