//
// Copyright (C) 2014 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_native_libs_ui_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_native_libs_ui_license"],
    default_team: "trendy_team_android_core_graphics_stack",
}

cc_test {
    name: "Region_test",
    shared_libs: ["libui"],
    srcs: ["Region_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "colorspace_test",
    shared_libs: ["libui"],
    srcs: ["colorspace_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "DisplayId_test",
    shared_libs: ["libui"],
    srcs: ["DisplayId_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "DisplayIdentification_test",
    shared_libs: ["libui"],
    static_libs: ["libgmock"],
    srcs: ["DisplayIdentification_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "FlattenableHelpers_test",
    shared_libs: ["libui"],
    srcs: ["FlattenableHelpers_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "GraphicBufferAllocator_test",
    header_libs: [
        "libnativewindow_headers",
    ],
    static_libs: [
        "libgmock",
    ],
    shared_libs: [
        "libhidlbase",
        "liblog",
        "libui",
    ],
    srcs: [
        "GraphicBufferAllocator_test.cpp",
        "mock/MockGrallocAllocator.cpp",
    ],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "GraphicBuffer_test",
    header_libs: [
        "libnativewindow_headers",
    ],
    shared_libs: [
        "libcutils",
        "libhidlbase",
        "libui",
        "libutils",
    ],
    srcs: ["GraphicBuffer_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

// This test has a main method, and requires a separate binary to be built.
cc_test {
    name: "GraphicBufferOverBinder_test",
    srcs: ["GraphicBufferOverBinder_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
    shared_libs: [
        "libbinder",
        "liblog",
        "libui",
        "libutils",
    ],
}

cc_test {
    name: "Rect_test",
    test_suites: ["device-tests"],
    shared_libs: ["libui"],
    srcs: ["Rect_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "Size_test",
    test_suites: ["device-tests"],
    shared_libs: ["libui"],
    srcs: ["Size_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "MockFence_test",
    shared_libs: ["libui"],
    static_libs: ["libgmock"],
    srcs: ["MockFence_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "Transform_test",
    shared_libs: ["libui"],
    srcs: ["Transform_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "HdrRenderTypeUtils_test",
    shared_libs: ["libui"],
    srcs: ["HdrRenderTypeUtils_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
}
