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