diff options
Diffstat (limited to 'libutils/SharedBufferTest.cpp')
| -rw-r--r-- | libutils/SharedBufferTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libutils/SharedBufferTest.cpp b/libutils/SharedBufferTest.cpp index 1919e771c..33a4e0c90 100644 --- a/libutils/SharedBufferTest.cpp +++ b/libutils/SharedBufferTest.cpp @@ -14,13 +14,15 @@ * limitations under the License. */ -#include <utils/SharedBuffer.h> +#define __STDC_LIMIT_MACROS #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)), ""); |
