Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 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", |
Dan Shi | 9cd5206 | 2017-03-29 23:09:37 -0700 | [diff] [blame] | 7 | test_suites: ["device-tests"], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 8 | |
| 9 | clang: true, |
Chih-Hung Hsieh | d66be0a | 2017-10-05 13:51:32 -0700 | [diff] [blame] | 10 | cflags: [ |
| 11 | "-Wall", |
| 12 | "-Werror", |
| 13 | ], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 14 | |
| 15 | srcs: [ |
Jiwen 'Steve' Cai | af7b2a1 | 2017-03-19 12:26:10 -0700 | [diff] [blame] | 16 | "BufferItemConsumer_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 17 | "BufferQueue_test.cpp", |
| 18 | "CpuConsumer_test.cpp", |
Robert Carr | 1c4c559 | 2018-09-24 13:18:43 -0700 | [diff] [blame] | 19 | "EndToEndNativeInputTest.cpp", |
Kevin DuBois | 9c0a176 | 2018-10-16 13:32:31 -0700 | [diff] [blame^] | 20 | "DisplayedContentSampling_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 21 | "FillBuffer.cpp", |
| 22 | "GLTest.cpp", |
| 23 | "IGraphicBufferProducer_test.cpp", |
Dan Stoza | 47730d6 | 2017-05-16 15:12:48 -0700 | [diff] [blame] | 24 | "Malicious.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 25 | "MultiTextureConsumer_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 26 | "StreamSplitter_test.cpp", |
| 27 | "SurfaceTextureClient_test.cpp", |
| 28 | "SurfaceTextureFBO_test.cpp", |
| 29 | "SurfaceTextureGLThreadToGL_test.cpp", |
| 30 | "SurfaceTextureGLToGL_test.cpp", |
| 31 | "SurfaceTextureGL_test.cpp", |
| 32 | "SurfaceTextureMultiContextGL_test.cpp", |
| 33 | "Surface_test.cpp", |
| 34 | "TextureRenderer.cpp", |
| 35 | ], |
| 36 | |
| 37 | shared_libs: [ |
Courtney Goeltzenleuchter | 6a570b6 | 2017-03-13 14:30:00 -0600 | [diff] [blame] | 38 | "android.hardware.configstore@1.0", |
| 39 | "android.hardware.configstore-utils", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 40 | "liblog", |
| 41 | "libEGL", |
| 42 | "libGLESv1_CM", |
| 43 | "libGLESv2", |
| 44 | "libbinder", |
| 45 | "libcutils", |
| 46 | "libgui", |
Courtney Goeltzenleuchter | 6a570b6 | 2017-03-13 14:30:00 -0600 | [diff] [blame] | 47 | "libhidlbase", |
| 48 | "libhidltransport", |
Robert Carr | 3720ed0 | 2018-08-08 16:08:27 -0700 | [diff] [blame] | 49 | "libinput", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 50 | "libui", |
| 51 | "libutils", |
Mathias Agopian | 89ed4c8 | 2017-02-09 18:48:34 -0800 | [diff] [blame] | 52 | "libnativewindow" |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 53 | ], |
| 54 | } |
Jiwen 'Steve' Cai | c90a77f | 2018-01-14 15:42:29 -0800 | [diff] [blame] | 55 | |
Siarhei Vishniakou | 4f5daff | 2018-06-12 16:51:38 +0100 | [diff] [blame] | 56 | // Build a separate binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 57 | // This test has a main method, and requires a separate binary to be built. |
| 58 | // To add move tests like this, just add additional cc_test statements, |
| 59 | // as opposed to adding more source files to this one. |
Jiwen 'Steve' Cai | c90a77f | 2018-01-14 15:42:29 -0800 | [diff] [blame] | 60 | cc_test { |
Siarhei Vishniakou | 4f5daff | 2018-06-12 16:51:38 +0100 | [diff] [blame] | 61 | name: "SurfaceParcelable_test", |
Jiwen 'Steve' Cai | c90a77f | 2018-01-14 15:42:29 -0800 | [diff] [blame] | 62 | test_suites: ["device-tests"], |
| 63 | |
| 64 | clang: true, |
| 65 | cflags: [ |
| 66 | "-Wall", |
| 67 | "-Werror", |
| 68 | ], |
| 69 | |
Jiwen 'Steve' Cai | c90a77f | 2018-01-14 15:42:29 -0800 | [diff] [blame] | 70 | srcs: [ |
| 71 | "SurfaceParcelable_test.cpp", |
| 72 | ], |
| 73 | |
| 74 | shared_libs: [ |
| 75 | "liblog", |
| 76 | "libbinder", |
| 77 | "libcutils", |
| 78 | "libgui", |
| 79 | "libui", |
| 80 | "libutils", |
| 81 | "libbufferhubqueue", // TODO(b/70046255): Remove these once BufferHub is integrated into libgui. |
| 82 | "libpdx_default_transport", |
| 83 | ], |
| 84 | |
| 85 | header_libs: [ |
| 86 | "libdvr_headers", |
| 87 | ], |
| 88 | } |