summaryrefslogtreecommitdiff
path: root/libs/gui/tests/Android.bp
blob: e606b9941ebf857d07a6645f592b6939b0a2f357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Build the unit tests,

// Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
// to integrate with auto-test framework.
package {
    default_team: "trendy_team_android_core_graphics_stack",
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_native_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_native_license"],
}

cc_test {
    name: "libgui_test",
    test_suites: ["device-tests"],

    defaults: ["libgui-defaults"],

    cppflags: [
        "-Wall",
        "-Werror",
        "-Wno-extra",
        "-DCOM_ANDROID_GRAPHICS_LIBGUI_FLAGS_BQ_SETFRAMERATE=true",
    ],

    srcs: [
        "LibGuiMain.cpp", // Custom gtest entrypoint
        "BLASTBufferQueue_test.cpp",
        "BufferItemConsumer_test.cpp",
        "BufferQueue_test.cpp",
        "CompositorTiming_test.cpp",
        "CpuConsumer_test.cpp",
        "EndToEndNativeInputTest.cpp",
        "FrameRateUtilsTest.cpp",
        "DisplayInfo_test.cpp",
        "DisplayedContentSampling_test.cpp",
        "FillBuffer.cpp",
        "GLTest.cpp",
        "IGraphicBufferProducer_test.cpp",
        "Malicious.cpp",
        "MultiTextureConsumer_test.cpp",
        "RegionSampling_test.cpp",
        "StreamSplitter_test.cpp",
        "SurfaceTextureClient_test.cpp",
        "SurfaceTextureFBO_test.cpp",
        "SurfaceTextureGLThreadToGL_test.cpp",
        "SurfaceTextureGLToGL_test.cpp",
        "SurfaceTextureGL_test.cpp",
        "SurfaceTextureMultiContextGL_test.cpp",
        "Surface_test.cpp",
        "TextureRenderer.cpp",
        "VsyncEventData_test.cpp",
        "WindowInfo_test.cpp",
    ],

    shared_libs: [
        "android.hardware.configstore@1.0",
        "android.hardware.configstore-utils",
        "libSurfaceFlingerProp",
        "libGLESv1_CM",
        "libinput",
    ],

    static_libs: [
        "libgmock",
    ],

    header_libs: ["libsurfaceflinger_headers"],
}

// Build the tests that need to run with both 32bit and 64bit.
cc_test {
    name: "libgui_multilib_test",
    test_suites: ["device-tests"],

    cflags: [
        "-Wall",
        "-Werror",
    ],

    srcs: [
        "DisplayEventStructLayout_test.cpp",
    ],

    shared_libs: [
        "libgui",
    ],

    compile_multilib: "both",

    header_libs: ["libsurfaceflinger_headers"],
    data: [
        ":libgui_test",
    ],
}

cc_test {
    name: "SamplingDemo",

    cflags: [
        "-Wall",
        "-Werror",
    ],

    srcs: [
        "SamplingDemo.cpp",
    ],

    shared_libs: [
        "libbinder",
        "libcutils",
        "libgui",
        "liblog",
        "libui",
        "libutils",
    ],
}