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 "BufferItemConsumer_test.cpp", 17 "BufferQueue_test.cpp", 18 "CpuConsumer_test.cpp", 19 "FillBuffer.cpp", 20 "GLTest.cpp", 21 "IGraphicBufferProducer_test.cpp", 22 "Malicious.cpp", 23 "MultiTextureConsumer_test.cpp", 24 "StreamSplitter_test.cpp", 25 "SurfaceTextureClient_test.cpp", 26 "SurfaceTextureFBO_test.cpp", 27 "SurfaceTextureGLThreadToGL_test.cpp", 28 "SurfaceTextureGLToGL_test.cpp", 29 "SurfaceTextureGL_test.cpp", 30 "SurfaceTextureMultiContextGL_test.cpp", 31 "Surface_test.cpp", 32 "TextureRenderer.cpp", 33 ], 34 35 shared_libs: [ 36 "android.hardware.configstore@1.0", 37 "android.hardware.configstore-utils", 38 "liblog", 39 "libEGL", 40 "libGLESv1_CM", 41 "libGLESv2", 42 "libbinder", 43 "libcutils", 44 "libgui", 45 "libhidlbase", 46 "libhidltransport", 47 "libui", 48 "libutils", 49 "libnativewindow" 50 ], 51} 52 53// Build a separate binary for each source file to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) 54cc_test { 55 name: "libgui_separate_binary_test", 56 test_suites: ["device-tests"], 57 58 clang: true, 59 cflags: [ 60 "-Wall", 61 "-Werror", 62 ], 63 64 test_per_src: true, 65 srcs: [ 66 "SurfaceParcelable_test.cpp", 67 ], 68 69 shared_libs: [ 70 "liblog", 71 "libbinder", 72 "libcutils", 73 "libgui", 74 "libui", 75 "libutils", 76 "libbufferhubqueue", // TODO(b/70046255): Remove these once BufferHub is integrated into libgui. 77 "libpdx_default_transport", 78 ], 79 80 header_libs: [ 81 "libdvr_headers", 82 ], 83} 84