blob: 5d9fb2e88439c8171c3fd763a751fff97155613c [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
34 static_libs: [
35 "libMediaBenchmark",
36 "junit",
37 "androidx.test.runner",
38 ],
39}
40
41android_library {
42 name: "libMediaBenchmark",
43
Harish Mahendrakare0d51a02020-01-03 17:53:45 -080044 defaults: [
45 "MediaBenchmark-defaults",
46 ],
47
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +053048 // Include all the libraries
49 srcs: ["src/main/**/*.java"],
50
Shivaansh Agrawalfcf3a3c2019-09-23 20:07:07 +053051 static_libs: [
52 "androidx.test.core",
53 ],
Ruchika Ashtankar34f5d0e2019-10-09 19:28:42 +053054}
Harish Mahendrakare0d51a02020-01-03 17:53:45 -080055
56java_defaults {
57 name: "MediaBenchmark-defaults",
58
59 sdk_version: "system_current",
60 min_sdk_version: "28",
61 target_sdk_version: "29",
62}