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

Commit 21ca7981 authored by Sergio Giro's avatar Sergio Giro
Browse files

resolved conflicts for 8dba9a7b to master

Change-Id: I314e3fc4dffbff1f7030533a821696692d03b33d
parents e8356efc 8dba9a7b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)), "");