blob: d80d9a54e601987c0b97ab0c47cc76c583209144 [file] [log] [blame]
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +05301/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17android_test {
18 name: "MediaBenchmarkTest",
19
Harish Mahendrakare0d51a02020-01-03 17:53:45 -080020 defaults: [
21 "MediaBenchmark-defaults",
22 ],
23
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +053024 // Include all the test code
25 srcs: ["src/androidTest/**/*.java"],
26
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +053027 resource_dirs: ["res"],
28
29 libs: [
30 "android.test.runner",
31 "android.test.base",
32 ],
33
Neelkamal Semwalb523c512019-10-17 18:38:11 +053034 jni_libs: [
35 "libmediabenchmark_jni",
36 ],
37
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +053038 static_libs: [
39 "libMediaBenchmark",
40 "junit",
41 "androidx.test.runner",
42 ],
43}
44
45android_library {
46 name: "libMediaBenchmark",
47
Harish Mahendrakare0d51a02020-01-03 17:53:45 -080048 defaults: [
49 "MediaBenchmark-defaults",
50 ],
51
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +053052 // Include all the libraries
53 srcs: ["src/main/**/*.java"],
54
Shivaansh Agrawalfcf3a3c2019-09-23 20:07:07 +053055 static_libs: [
56 "androidx.test.core",
57 ],
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +053058}
Harish Mahendrakare0d51a02020-01-03 17:53:45 -080059
60java_defaults {
61 name: "MediaBenchmark-defaults",
62
63 sdk_version: "system_current",
64 min_sdk_version: "28",
65 target_sdk_version: "29",
66}