| // Build the unit tests. |
| package { |
| // See: http://go/android-license-faq |
| // A large-scale-change added 'default_applicable_licenses' to import |
| // all of the 'license_kinds' from "frameworks_av_license" |
| // to get the below license kinds: |
| // SPDX-license-identifier-Apache-2.0 |
| default_applicable_licenses: ["frameworks_av_license"], |
| } |
| |
| cc_test { |
| name: "ResourceManagerService_test", |
| srcs: ["ResourceManagerService_test.cpp"], |
| test_suites: ["device-tests"], |
| static_libs: ["libresourcemanagerservice"], |
| shared_libs: [ |
| "libbinder", |
| "libbinder_ndk", |
| "liblog", |
| "libmedia", |
| "libmediautils", |
| "libutils", |
| "libstats_media_metrics", |
| "libstatspull", |
| "libstatssocket", |
| "libactivitymanager_aidl", |
| ], |
| include_dirs: [ |
| "frameworks/av/include", |
| "frameworks/av/services/mediaresourcemanager", |
| ], |
| cflags: [ |
| "-Werror", |
| "-Wall", |
| ], |
| } |
| |
| cc_test { |
| name: "ServiceLog_test", |
| srcs: ["ServiceLog_test.cpp"], |
| test_suites: ["device-tests"], |
| static_libs: ["libresourcemanagerservice"], |
| shared_libs: [ |
| "liblog", |
| "libmedia", |
| "libutils", |
| ], |
| include_dirs: [ |
| "frameworks/av/include", |
| "frameworks/av/services/mediaresourcemanager", |
| ], |
| cflags: [ |
| "-Werror", |
| "-Wall", |
| ], |
| } |
| |
| cc_test { |
| name: "ResourceObserverService_test", |
| srcs: ["ResourceObserverService_test.cpp"], |
| test_suites: ["device-tests"], |
| static_libs: [ |
| "libresourcemanagerservice", |
| "resourceobserver_aidl_interface-V1-ndk", |
| ], |
| shared_libs: [ |
| "libbinder", |
| "libbinder_ndk", |
| "liblog", |
| "libmedia", |
| "libmediautils", |
| "libutils", |
| "libstats_media_metrics", |
| "libstatspull", |
| "libstatssocket", |
| "libactivitymanager_aidl", |
| ], |
| include_dirs: [ |
| "frameworks/av/include", |
| "frameworks/av/services/mediaresourcemanager", |
| ], |
| cflags: [ |
| "-Werror", |
| "-Wall", |
| ], |
| } |