Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | android_test { |
| 18 | name: "MediaBenchmarkTest", |
| 19 | |
Harish Mahendrakar | e0d51a0 | 2020-01-03 17:53:45 -0800 | [diff] [blame] | 20 | defaults: [ |
| 21 | "MediaBenchmark-defaults", |
| 22 | ], |
| 23 | |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 24 | // Include all the test code |
| 25 | srcs: ["src/androidTest/**/*.java"], |
| 26 | |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 27 | resource_dirs: ["res"], |
| 28 | |
| 29 | libs: [ |
| 30 | "android.test.runner", |
| 31 | "android.test.base", |
| 32 | ], |
| 33 | |
Neelkamal Semwal | b523c51 | 2019-10-17 18:38:11 +0530 | [diff] [blame] | 34 | jni_libs: [ |
| 35 | "libmediabenchmark_jni", |
| 36 | ], |
| 37 | |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 38 | static_libs: [ |
| 39 | "libMediaBenchmark", |
| 40 | "junit", |
| 41 | "androidx.test.runner", |
| 42 | ], |
| 43 | } |
| 44 | |
| 45 | android_library { |
| 46 | name: "libMediaBenchmark", |
| 47 | |
Harish Mahendrakar | e0d51a0 | 2020-01-03 17:53:45 -0800 | [diff] [blame] | 48 | defaults: [ |
| 49 | "MediaBenchmark-defaults", |
| 50 | ], |
| 51 | |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 52 | // Include all the libraries |
| 53 | srcs: ["src/main/**/*.java"], |
| 54 | |
Shivaansh Agrawal | fcf3a3c | 2019-09-23 20:07:07 +0530 | [diff] [blame] | 55 | static_libs: [ |
| 56 | "androidx.test.core", |
| 57 | ], |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 58 | } |
Harish Mahendrakar | e0d51a0 | 2020-01-03 17:53:45 -0800 | [diff] [blame] | 59 | |
| 60 | java_defaults { |
| 61 | name: "MediaBenchmark-defaults", |
| 62 | |
| 63 | sdk_version: "system_current", |
| 64 | min_sdk_version: "28", |
| 65 | target_sdk_version: "29", |
| 66 | } |