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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
fef9dffd
Commit
fef9dffd
authored
9 years ago
by
Narayan Kamath
Committed by
Android Git Automerger
9 years ago
Browse files
Options
Downloads
Plain Diff
am
6c53de92
: Follow up to change
b638126e
DO NOT MERGE.
* commit '
6c53de92
': Follow up to change
b638126e
DO NOT MERGE.
parents
a82d6dc3
6c53de92
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libutils/tests/Android.mk
+0
-7
0 additions, 7 deletions
libutils/tests/Android.mk
libutils/tests/Vector_test.cpp
+4
-2
4 additions, 2 deletions
libutils/tests/Vector_test.cpp
with
4 additions
and
9 deletions
libutils/tests/Android.mk
+
0
−
7
View file @
fef9dffd
...
@@ -33,10 +33,3 @@ $(foreach file,$(test_src_files), \
...
@@ -33,10 +33,3 @@ $(foreach file,$(test_src_files), \
$(
eval
include
$(
BUILD_NATIVE_TEST
))
\
$(
eval
include
$(
BUILD_NATIVE_TEST
))
\
)
)
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
libutils_tests_host
LOCAL_SRC_FILES
:=
Vector_test.cpp
LOCAL_STATIC_LIBRARIES
:=
libutils liblog
include
$(BUILD_HOST_NATIVE_TEST)
This diff is collapsed.
Click to expand it.
libutils/tests/Vector_test.cpp
+
4
−
2
View file @
fef9dffd
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
#define LOG_TAG "Vector_test"
#define LOG_TAG "Vector_test"
#define __STDC_LIMIT_MACROS
#include
<stdint.h>
#include
<utils/Vector.h>
#include
<utils/Vector.h>
#include
<cutils/log.h>
#include
<cutils/log.h>
#include
<gtest/gtest.h>
#include
<gtest/gtest.h>
...
@@ -87,9 +89,9 @@ TEST_F(VectorTest, SetCapacity_ShrinkBelowSize) {
...
@@ -87,9 +89,9 @@ TEST_F(VectorTest, SetCapacity_ShrinkBelowSize) {
vector
.
add
(
4
);
vector
.
add
(
4
);
vector
.
setCapacity
(
8
);
vector
.
setCapacity
(
8
);
ASSERT_EQ
(
8
,
vector
.
capacity
());
ASSERT_EQ
(
8
U
,
vector
.
capacity
());
vector
.
setCapacity
(
2
);
vector
.
setCapacity
(
2
);
ASSERT_EQ
(
8
,
vector
.
capacity
());
ASSERT_EQ
(
8
U
,
vector
.
capacity
());
}
}
// NOTE: All of the tests below are useless because of the "TODO" above.
// NOTE: All of the tests below are useless because of the "TODO" above.
...
...
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