Skip to content
Snippets Groups Projects
Commit 21ca7981 authored by Sergio Giro's avatar Sergio Giro
Browse files

resolved conflicts for 8dba9a7b to master

Change-Id: I314e3fc4dffbff1f7030533a821696692d03b33d
parents e8356efc 8dba9a7b
Branches
Tags
No related merge requests found
...@@ -14,13 +14,15 @@ ...@@ -14,13 +14,15 @@
* limitations under the License. * limitations under the License.
*/ */
#include <utils/SharedBuffer.h> #define __STDC_LIMIT_MACROS
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <memory> #include <memory>
#include <stdint.h> #include <stdint.h>
#include "SharedBuffer.h"
TEST(SharedBufferTest, TestAlloc) { TEST(SharedBufferTest, TestAlloc) {
EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), ""); EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), "");
EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), ""); EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment