cc_defaults {
    name: "libaaudio_tests_defaults",
    cflags: [
        "-Wall",
        "-Werror",
    ],
}

cc_test {
    name: "test_aaudio_marshalling",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_marshalling.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_clock_model",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_clock_model.cpp"],
    shared_libs: [
        "libaaudio",
        "libaudioutils",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_block_adapter",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_block_adapter.cpp"],
    shared_libs: ["libaaudio"],
}

cc_test {
    name: "test_timestamps",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_timestamps.cpp"],
    header_libs: ["libaaudio_example_utils"],
    shared_libs: ["libaaudio"],
}

cc_test {
    name: "test_open_params",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_open_params.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_no_close",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_no_close.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_aaudio_recovery",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_recovery.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_n_streams",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_n_streams.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_bad_disconnect",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_bad_disconnect.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_various",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_various.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_session_id",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_session_id.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_aaudio_monkey",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_aaudio_monkey.cpp"],
    header_libs: ["libaaudio_example_utils"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_attributes",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_attributes.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_interference",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_interference.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_atomic_fifo",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_atomic_fifo.cpp"],
    shared_libs: ["libaaudio"],
}

cc_test {
    name: "test_flowgraph",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_flowgraph.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_return_stop",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_return_stop.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_stop_hang",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_stop_hang.cpp"],
    shared_libs: [
        "libaaudio",
        "libbinder",
        "libcutils",
        "libutils",
    ],
}

cc_test {
    name: "test_full_queue",
    defaults: ["libaaudio_tests_defaults"],
    srcs: ["test_full_queue.cpp"],
    shared_libs: ["libaaudio"],
}