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 | |
| 34 | static_libs: [ |
| 35 | "libMediaBenchmark", |
| 36 | "junit", |
| 37 | "androidx.test.runner", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | android_library { |
| 42 | name: "libMediaBenchmark", |
| 43 | |
Harish Mahendrakar | e0d51a0 | 2020-01-03 17:53:45 -0800 | [diff] [blame^] | 44 | defaults: [ |
| 45 | "MediaBenchmark-defaults", |
| 46 | ], |
| 47 | |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 48 | // Include all the libraries |
| 49 | srcs: ["src/main/**/*.java"], |
| 50 | |
Shivaansh Agrawal | fcf3a3c | 2019-09-23 20:07:07 +0530 | [diff] [blame] | 51 | static_libs: [ |
| 52 | "androidx.test.core", |
| 53 | ], |
Ruchika Ashtankar | 34f5d0e | 2019-10-09 19:28:42 +0530 | [diff] [blame] | 54 | } |
Harish Mahendrakar | e0d51a0 | 2020-01-03 17:53:45 -0800 | [diff] [blame^] | 55 | |
| 56 | java_defaults { |
| 57 | name: "MediaBenchmark-defaults", |
| 58 | |
| 59 | sdk_version: "system_current", |
| 60 | min_sdk_version: "28", |
| 61 | target_sdk_version: "29", |
| 62 | } |