Home | History | Annotate | Download | only in tests
      1 // Build the unit tests,
      2 
      3 // Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
      4 // to integrate with auto-test framework.
      5 cc_test {
      6     name: "libgui_test",
      7     test_suites: ["device-tests"],
      8 
      9     clang: true,
     10     cflags: [
     11         "-Wall",
     12         "-Werror",
     13     ],
     14 
     15     srcs: [
     16         "BufferItemConsumer_test.cpp",
     17         "BufferQueue_test.cpp",
     18         "CpuConsumer_test.cpp",
     19         "EndToEndNativeInputTest.cpp",
     20         "DisplayedContentSampling_test.cpp",
     21         "FillBuffer.cpp",
     22         "GLTest.cpp",
     23         "IGraphicBufferProducer_test.cpp",
     24         "Malicious.cpp",
     25         "MultiTextureConsumer_test.cpp",
     26         "RegionSampling_test.cpp",
     27         "StreamSplitter_test.cpp",
     28         "SurfaceTextureClient_test.cpp",
     29         "SurfaceTextureFBO_test.cpp",
     30         "SurfaceTextureGLThreadToGL_test.cpp",
     31         "SurfaceTextureGLToGL_test.cpp",
     32         "SurfaceTextureGL_test.cpp",
     33         "SurfaceTextureMultiContextGL_test.cpp",
     34         "Surface_test.cpp",
     35         "TextureRenderer.cpp",
     36     ],
     37 
     38     shared_libs: [
     39         "android.hardware.configstore (a] 1.0",
     40         "android.hardware.configstore-utils",
     41         "libbase",
     42         "liblog",
     43         "libEGL",
     44         "libGLESv1_CM",
     45         "libGLESv2",
     46         "libbinder",
     47         "libcutils",
     48         "libgui",
     49         "libhidlbase",
     50         "libhidltransport",
     51         "libinput",
     52         "libui",
     53         "libutils",
     54         "libnativewindow"
     55     ],
     56 }
     57 
     58 // Build a separate binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
     59 // This test has a main method, and requires a separate binary to be built.
     60 // To add move tests like this, just add additional cc_test statements,
     61 // as opposed to adding more source files to this one.
     62 cc_test {
     63     name: "SurfaceParcelable_test",
     64     test_suites: ["device-tests"],
     65 
     66     clang: true,
     67     cflags: [
     68         "-Wall",
     69         "-Werror",
     70     ],
     71 
     72     srcs: [
     73         "SurfaceParcelable_test.cpp",
     74     ],
     75 
     76     shared_libs: [
     77         "liblog",
     78         "libbinder",
     79         "libcutils",
     80         "libgui",
     81         "libui",
     82         "libutils",
     83         "libbufferhubqueue",  // TODO(b/70046255): Remove these once BufferHub is integrated into libgui.
     84         "libpdx_default_transport",
     85     ],
     86 
     87     header_libs: [
     88         "libdvr_headers",
     89     ],
     90 }
     91 
     92 cc_test {
     93     name: "SamplingDemo",
     94 
     95     clang: true,
     96     cflags: [
     97         "-Wall",
     98         "-Werror",
     99     ],
    100 
    101     srcs: [
    102         "SamplingDemo.cpp",
    103     ],
    104 
    105     shared_libs: [
    106         "libbinder",
    107         "libcutils",
    108         "libgui",
    109         "liblog",
    110         "libui",
    111         "libutils",
    112     ]
    113 }
    114