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

Commit 4ace9df5 authored by jiabin's avatar jiabin Committed by android-build-merger
Browse files

Merge "Add unit test for dynamic policy."

am: 8121bf7c

Change-Id: Ibb02ec372f31bdca06f1faa968b32de23c33824c
parents 3c4f15ae 8121bf7c
Loading
Loading
Loading
Loading
+66 −0
Original line number Diff line number Diff line
cc_test {
    name: "audiopolicy_tests",

    include_dirs: [
        "frameworks/av/services/audiopolicy",
    ],

    shared_libs: [
        "libaudioclient",
        "libaudiofoundation",
        "libaudiopolicy",
        "libaudiopolicymanagerdefault",
        "libbase",
        "libhidlbase",
        "liblog",
        "libmedia_helper",
        "libutils",
        "libxml2",
    ],

    static_libs: ["libaudiopolicycomponents"],

    header_libs: [
        "libaudiopolicycommon",
        "libaudiopolicyengine_interface_headers",
        "libaudiopolicymanager_interface_headers",
    ],

    srcs: ["audiopolicymanager_tests.cpp"],

    data: [":audiopolicytest_configuration_files",],

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

    test_suites: ["device-tests"],

}

// system/audio.h utilities test

cc_test {
    name: "systemaudio_tests",

    shared_libs: [
        "libaudiofoundation",
        "libbase",
        "liblog",
        "libmedia_helper",
        "libutils",
    ],

    header_libs: ["libmedia_headers"],

    srcs: ["systemaudio_tests.cpp"],

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

    test_suites: ["device-tests"],

}
+0 −67
Original line number Diff line number Diff line
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_C_INCLUDES := \
  frameworks/av/services/audiopolicy \
  $(call include-path-for, audio-utils) \

LOCAL_SHARED_LIBRARIES := \
  libaudiofoundation \
  libaudiopolicymanagerdefault \
  libbase \
  liblog \
  libmedia_helper \
  libutils \

LOCAL_STATIC_LIBRARIES := \
  libaudiopolicycomponents \

LOCAL_HEADER_LIBRARIES := \
    libaudiopolicycommon \
    libaudiopolicyengine_interface_headers \
    libaudiopolicymanager_interface_headers

LOCAL_SRC_FILES := \
  audiopolicymanager_tests.cpp \

LOCAL_MODULE := audiopolicy_tests

LOCAL_MODULE_TAGS := tests

LOCAL_CFLAGS := -Werror -Wall

LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)

LOCAL_COMPATIBILITY_SUITE := device-tests

include $(BUILD_NATIVE_TEST)

# system/audio.h utilities test

include $(CLEAR_VARS)

LOCAL_SHARED_LIBRARIES := \
  libaudiofoundation \
  libbase \
  liblog \
  libmedia_helper \
  libutils

LOCAL_HEADER_LIBRARIES := \
  libmedia_headers

LOCAL_SRC_FILES := \
  systemaudio_tests.cpp \

LOCAL_MODULE := systemaudio_tests

LOCAL_MODULE_TAGS := tests

LOCAL_CFLAGS := -Werror -Wall

LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)

LOCAL_COMPATIBILITY_SUITE := device-tests

include $(BUILD_NATIVE_TEST)
Loading