Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_av_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_av_license"], |
| 8 | } |
| 9 | |
Andy Hung | d426582 | 2022-04-01 18:54:32 -0700 | [diff] [blame] | 10 | cc_test_library { |
| 11 | name: "libsharedtest", |
| 12 | cflags: [ |
| 13 | "-Wall", |
| 14 | "-Werror", |
| 15 | "-Wextra", |
| 16 | ], |
| 17 | |
| 18 | sanitize:{ |
| 19 | address: true, |
| 20 | cfi: true, |
| 21 | integer_overflow: true, |
| 22 | memtag_heap: true, |
| 23 | }, |
| 24 | |
| 25 | shared_libs: [ |
| 26 | "liblog", |
| 27 | ], |
| 28 | |
| 29 | srcs: [ |
| 30 | "sharedtest.cpp", |
| 31 | ] |
| 32 | } |
| 33 | |
| 34 | cc_test { |
| 35 | name: "library_tests", |
| 36 | |
| 37 | cflags: [ |
| 38 | "-Wall", |
| 39 | "-Werror", |
| 40 | "-Wextra", |
| 41 | ], |
| 42 | |
| 43 | sanitize:{ |
| 44 | address: true, |
| 45 | cfi: true, |
| 46 | integer_overflow: true, |
| 47 | memtag_heap: true, |
| 48 | }, |
| 49 | |
| 50 | shared_libs: [ |
| 51 | "libbase", |
| 52 | "liblog", |
| 53 | "libmediautils", |
| 54 | "libutils", |
| 55 | ], |
| 56 | |
| 57 | data_libs: [ |
| 58 | "libsharedtest", |
| 59 | ], |
| 60 | |
| 61 | srcs: [ |
| 62 | "library_tests.cpp", |
| 63 | ], |
| 64 | } |
| 65 | |
Andy Hung | 328d677 | 2021-01-12 12:32:21 -0800 | [diff] [blame] | 66 | cc_test { |
Andy Hung | afc51db | 2022-04-08 17:33:40 -0700 | [diff] [blame] | 67 | name: "media_process_tests", |
| 68 | |
| 69 | cflags: [ |
| 70 | "-Wall", |
| 71 | "-Werror", |
| 72 | "-Wextra", |
| 73 | ], |
| 74 | |
| 75 | shared_libs: [ |
| 76 | "liblog", |
| 77 | "libmediautils", |
| 78 | "libutils", |
| 79 | ], |
| 80 | |
| 81 | srcs: [ |
| 82 | "media_process_tests.cpp", |
| 83 | ], |
| 84 | } |
| 85 | |
| 86 | cc_test { |
Andy Hung | 328d677 | 2021-01-12 12:32:21 -0800 | [diff] [blame] | 87 | name: "media_synchronization_tests", |
| 88 | |
| 89 | cflags: [ |
| 90 | "-Wall", |
| 91 | "-Werror", |
| 92 | "-Wextra", |
| 93 | ], |
| 94 | |
| 95 | shared_libs: [ |
| 96 | "liblog", |
| 97 | "libmediautils", |
| 98 | "libutils", |
| 99 | ], |
| 100 | |
| 101 | srcs: [ |
| 102 | "media_synchronization_tests.cpp", |
| 103 | ], |
| 104 | } |
Andy Hung | 5c6d68a | 2022-03-09 21:54:59 -0800 | [diff] [blame] | 105 | |
| 106 | cc_test { |
Andy Hung | 44d648b | 2022-04-08 17:33:40 -0700 | [diff] [blame] | 107 | name: "media_threadsnapshot_tests", |
| 108 | |
| 109 | cflags: [ |
| 110 | "-Wall", |
| 111 | "-Werror", |
| 112 | "-Wextra", |
| 113 | ], |
| 114 | |
| 115 | shared_libs: [ |
| 116 | "liblog", |
| 117 | "libmediautils", |
| 118 | "libutils", |
| 119 | ], |
| 120 | |
| 121 | srcs: [ |
| 122 | "media_threadsnapshot_tests.cpp", |
| 123 | ], |
| 124 | } |
| 125 | |
| 126 | cc_test { |
Andy Hung | c747c53 | 2022-03-07 21:41:14 -0800 | [diff] [blame] | 127 | name: "methodstatistics_tests", |
| 128 | |
| 129 | cflags: [ |
| 130 | "-Wall", |
| 131 | "-Werror", |
| 132 | "-Wextra", |
| 133 | ], |
| 134 | |
| 135 | shared_libs: [ |
| 136 | "libaudioutils", |
| 137 | "liblog", |
| 138 | "libmediautils", |
| 139 | "libutils", |
| 140 | ], |
| 141 | |
| 142 | srcs: [ |
| 143 | "methodstatistics_tests.cpp", |
| 144 | ], |
| 145 | } |
| 146 | |
| 147 | cc_test { |
Andy Hung | 5c6d68a | 2022-03-09 21:54:59 -0800 | [diff] [blame] | 148 | name: "timecheck_tests", |
| 149 | |
| 150 | cflags: [ |
| 151 | "-Wall", |
| 152 | "-Werror", |
| 153 | "-Wextra", |
| 154 | ], |
| 155 | |
| 156 | sanitize:{ |
| 157 | address: true, |
| 158 | cfi: true, |
| 159 | integer_overflow: true, |
| 160 | memtag_heap: true, |
| 161 | }, |
| 162 | |
| 163 | shared_libs: [ |
| 164 | "liblog", |
| 165 | "libmediautils", |
| 166 | "libutils", |
| 167 | ], |
| 168 | |
| 169 | srcs: [ |
| 170 | "timecheck_tests.cpp", |
| 171 | ], |
| 172 | } |