summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authormukesh agrawal <quiche@google.com>2016-09-23 18:22:13 -0700
committermukesh agrawal <quiche@google.com>2016-10-04 18:28:01 -0700
commit53b465f2e5c0cba5212b18bf27d21b84378b0c74 (patch)
tree8369ca5d9cefe95141548b71eb8e92c8a42284e2 /Android.mk
parent6154ce7b95f2e77ec3e9c02d48746e592dcdcf54 (diff)
downloadwifilogd-53b465f2e5c0cba5212b18bf27d21b84378b0c74.tar.gz
local_utils: add SAFELY_CLAMP and GetMaxVal
Add the SAFELY_CLAMP macro, the SafelyClamp() function template, and the GetMaxVal() function templates. These facilities provide a safe, flexible, expressive way to convert between types. Bug: 31858720 Test: ./runtests.sh (on bullhead) Change-Id: I034066b13a28954cfcd46a470c487136e5d6a51d
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 9d6d776..87a37ef 100644
--- a/Android.mk
+++ b/Android.mk
@@ -46,6 +46,7 @@ LOCAL_MODULE := wifilogd_unit_test
LOCAL_CPPFLAGS := $(wifilogd_cpp_flags) $(wifilogd_gtest_cpp_flags)
LOCAL_C_INCLUDES := $(wifilogd_includes)
LOCAL_SRC_FILES := \
+ tests/local_utils_unittest.cpp \
tests/main.cpp \
tests/message_buffer_unittest.cpp \
tests/protocol_unittest.cpp