summaryrefslogtreecommitdiffstats
path: root/libutils/tests
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-07-29 17:01:17 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-07-29 17:01:17 +0000
commit89cc78b77ff162d061a4bb0cc920c48a1ac3ed91 (patch)
tree466ea17fd124a6b52e3b5c0d4fe661927732d29b /libutils/tests
parent6d287b3de7245061d7917852063064bbf281ed57 (diff)
parent6dc68cb5f97a2f4fd3e0d105f34cd29dd73e0da5 (diff)
downloadsystem_core-89cc78b77ff162d061a4bb0cc920c48a1ac3ed91.tar.gz
system_core-89cc78b77ff162d061a4bb0cc920c48a1ac3ed91.tar.bz2
system_core-89cc78b77ff162d061a4bb0cc920c48a1ac3ed91.zip
Merge \"Fix google-explicit-constructor warnings in system/core.\"
am: 6dc68cb5f9 Change-Id: I5a010465364b6e14423b19e8c0f9cffa58ee3152
Diffstat (limited to 'libutils/tests')
-rw-r--r--libutils/tests/Looper_test.cpp2
-rw-r--r--libutils/tests/StrongPointer_test.cpp2
-rw-r--r--libutils/tests/TestHelpers.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/libutils/tests/Looper_test.cpp b/libutils/tests/Looper_test.cpp
index 17319e03f..8ebcfaf5a 100644
--- a/libutils/tests/Looper_test.cpp
+++ b/libutils/tests/Looper_test.cpp
@@ -76,7 +76,7 @@ public:
int fd;
int events;
- StubCallbackHandler(int nextResult) : nextResult(nextResult),
+ explicit StubCallbackHandler(int nextResult) : nextResult(nextResult),
callbackCount(0), fd(-1), events(-1) {
}
diff --git a/libutils/tests/StrongPointer_test.cpp b/libutils/tests/StrongPointer_test.cpp
index f46d6d140..323a6f20a 100644
--- a/libutils/tests/StrongPointer_test.cpp
+++ b/libutils/tests/StrongPointer_test.cpp
@@ -23,7 +23,7 @@ using namespace android;
class Foo : public LightRefBase<Foo> {
public:
- Foo(bool* deleted_check) : mDeleted(deleted_check) {
+ explicit Foo(bool* deleted_check) : mDeleted(deleted_check) {
*mDeleted = false;
}
diff --git a/libutils/tests/TestHelpers.h b/libutils/tests/TestHelpers.h
index d8e985e9c..6801cd739 100644
--- a/libutils/tests/TestHelpers.h
+++ b/libutils/tests/TestHelpers.h
@@ -60,7 +60,7 @@ class DelayedTask : public Thread {
int mDelayMillis;
public:
- DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { }
+ explicit DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { }
protected:
virtual ~DelayedTask() { }