Home | History | Annotate | Download | only in tests
      1 // Build the unit tests.
      2 cc_test {
      3     name: "libinput_tests",
      4     srcs: [
      5         "InputChannel_test.cpp",
      6         "InputDevice_test.cpp",
      7         "InputEvent_test.cpp",
      8         "InputPublisherAndConsumer_test.cpp",
      9         "InputWindow_test.cpp",
     10         "TouchVideoFrame_test.cpp",
     11         "VelocityTracker_test.cpp",
     12     ],
     13     cflags: [
     14         "-Wall",
     15         "-Wextra",
     16         "-Werror",
     17         "-Wno-unused-variable",
     18     ],
     19     shared_libs: [
     20         "libinput",
     21         "libcutils",
     22         "libutils",
     23         "libbinder",
     24         "libui",
     25         "libbase",
     26     ]
     27 }
     28 
     29 // NOTE: This is a compile time test, and does not need to be
     30 // run. All assertions are static_asserts and will fail during
     31 // buildtime if something's wrong.
     32 cc_library_static {
     33     name: "StructLayout_test",
     34     srcs: ["StructLayout_test.cpp"],
     35     cflags: [
     36         "-O0",
     37         "-Wall",
     38         "-Werror",
     39         "-Wextra",
     40     ],
     41     shared_libs: [
     42         "libinput",
     43         "libcutils",
     44         "libutils",
     45         "libbinder",
     46         "libui",
     47         "libbase",
     48     ]
     49 }
     50