summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-04-25 14:17:14 -0700
committerChih-Hung Hsieh <chh@google.com>2016-04-25 14:17:14 -0700
commit11b95b9c3a946089d52f205838c05373c954b16e (patch)
tree45e21b26f3f59f18f711218b4ca09c74379593b8 /tests
parent0add9c5b35041af781e1433ae0790167e7b3277f (diff)
downloadextras-11b95b9c3a946089d52f205838c05373c954b16e.tar.gz
Fix google-explicit-constructor warnings.
Bug: 28341362 Change-Id: I9f388006f5593b9f224e98e93deca7da35c5618a
Diffstat (limited to 'tests')
-rw-r--r--tests/binder/benchmarks/binderAddInts.cpp2
-rw-r--r--tests/fstest/recovery_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/binder/benchmarks/binderAddInts.cpp b/tests/binder/benchmarks/binderAddInts.cpp
index ff7ea079..f061f7c2 100644
--- a/tests/binder/benchmarks/binderAddInts.cpp
+++ b/tests/binder/benchmarks/binderAddInts.cpp
@@ -73,7 +73,7 @@ struct options {
class AddIntsService : public BBinder
{
public:
- AddIntsService(int cpu = unbound);
+ explicit AddIntsService(int cpu = unbound);
virtual ~AddIntsService() {}
enum command {
diff --git a/tests/fstest/recovery_test.cpp b/tests/fstest/recovery_test.cpp
index b93de83e..02c7e8fd 100644
--- a/tests/fstest/recovery_test.cpp
+++ b/tests/fstest/recovery_test.cpp
@@ -48,7 +48,7 @@ namespace android {
class DataFileVerifier {
public:
- DataFileVerifier(const char* file_name) {
+ explicit DataFileVerifier(const char* file_name) {
strncpy(test_file_, file_name, FILENAME_MAX);
}