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