1 // Build the unit tests. 2 3 perfprofd_test_cppflags = [ 4 "-Wall", 5 "-Wno-sign-compare", 6 "-Wno-unused-parameter", 7 "-Werror", 8 ] 9 10 // 11 // Static library with mockup utilities layer (called by unit test). 12 // 13 cc_library_static { 14 name: "libperfprofdmockutils", 15 clang: true, 16 17 include_dirs: ["system/extras/perfprofd"], 18 cppflags: perfprofd_test_cppflags, 19 srcs: ["perfprofdmockutils.cc"], 20 } 21 22 // 23 // Unit test for perfprofd 24 // 25 cc_test { 26 name: "perfprofd_test", 27 clang: true, 28 29 stl: "libc++", 30 static_libs: [ 31 "libperfprofdcore", 32 "libperfprofdmockutils", 33 "libbase", 34 ], 35 shared_libs: [ 36 "libprotobuf-cpp-lite", 37 "liblog", 38 "libcutils", 39 ], 40 srcs: ["perfprofd_test.cc"], 41 cppflags: perfprofd_test_cppflags, 42 } 43