diff options
author | mukesh agrawal <quiche@google.com> | 2016-09-23 18:22:13 -0700 |
---|---|---|
committer | mukesh agrawal <quiche@google.com> | 2016-10-04 18:28:01 -0700 |
commit | 53b465f2e5c0cba5212b18bf27d21b84378b0c74 (patch) | |
tree | 8369ca5d9cefe95141548b71eb8e92c8a42284e2 /Android.mk | |
parent | 6154ce7b95f2e77ec3e9c02d48746e592dcdcf54 (diff) | |
download | wifilogd-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.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |