libutils: fix compile error in SharedBufferTest

Change-Id: Ib1185d417457d03efa102989a64b5b5e4eb5c82a
This commit is contained in:
Sergio Giro 2015-09-23 21:22:14 +01:00
parent be0044fa83
commit 8dba9a7bf1

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