Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b66dc82c authored by Lajos Molnar's avatar Lajos Molnar
Browse files

Codec2: separate param/paramutils test from other Codec2 unit tests

Parameter tests must not link to codec2 libraries to verify that
the libraries are not required to use Codec2 parameters and utils.

Bug: 64121714
Test: unittest
Change-Id: I6e65363157e9224246924aed51098ccbd0b5a01e
parent 8f8932c4
Loading
Loading
Loading
Loading
+31 −2
Original line number Diff line number Diff line
cc_test {
    name: "codec2_param_test",

    tags: [
        "tests",
    ],

    srcs: [
        "C2Param_test.cpp",
        "vndk/C2UtilTest.cpp",
    ],

    include_dirs: [
        "frameworks/av/media/libstagefright/codec2/include",
        "frameworks/av/media/libstagefright/codec2/vndk/include",
    ],

    // param tests must not depend on any codec2 libraries as all params should be templated
    shared_libs: [
    ],

    static_libs: [
    ],

    cflags: [
        "-Werror",
        "-Wall",
        "-std=c++14",
    ],
}

cc_test {
    name: "codec2_test",

@@ -7,9 +38,7 @@ cc_test {

    srcs: [
        "vndk/C2BufferTest.cpp",
        "vndk/C2UtilTest.cpp",
        "C2_test.cpp",
        "C2Param_test.cpp",
    ],

    include_dirs: [