Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
21ca7981
Commit
21ca7981
authored
Sep 23, 2015
by
Sergio Giro
Browse files
Options
Downloads
Plain Diff
resolved conflicts for
8dba9a7b
to master
Change-Id: I314e3fc4dffbff1f7030533a821696692d03b33d
parents
e8356efc
8dba9a7b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libutils/SharedBufferTest.cpp
+3
-1
3 additions, 1 deletion
libutils/SharedBufferTest.cpp
with
3 additions
and
1 deletion
libutils/SharedBufferTest.cpp
+
3
−
1
View file @
21ca7981
...
@@ -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
)),
""
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment