• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2022 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19java_test_host {
20    name: "SdkSandboxStorageHostTest",
21    srcs: ["src/**/SdkSandboxStorageHostTest.java"],
22    test_config: "SdkSandboxStorageHostTest.xml",
23    libs: [
24        "tradefed",
25    ],
26    static_libs: [
27        "cts-install-lib-host",
28    ],
29    test_suites: ["general-tests"],
30    data: [
31        ":StorageTestCodeProvider",
32        ":SdkSandboxStorageTestApp",
33        ":SdkSandboxStorageTestAppV2_DoesNotConsumeSdk",
34    ],
35}
36
37java_defaults {
38    name: "SdkSandboxStorageHostTestDefaults",
39    srcs: [
40        "app/src/**/SdkSandboxStorageTestApp.java",
41        ":framework-sdksandbox-sources",
42        ":sdksandbox_aidl",
43        ":sdksandbox-sources",
44    ],
45    static_libs: [
46        "androidx.core_core",
47        "compatibility-device-util-axt",
48        "SdkSandboxTestUtils",
49    ],
50    test_suites: ["general-tests"],
51    platform_apis: true,
52}
53
54android_test_helper_app {
55    name: "SdkSandboxStorageTestApp",
56    manifest: "app/SdkSandboxStorageTestAppManifest.xml",
57    defaults: ["SdkSandboxStorageHostTestDefaults"],
58}
59
60android_test_helper_app {
61    name: "SdkSandboxStorageTestAppV2_DoesNotConsumeSdk",
62    manifest: "app/SdkSandboxStorageTestAppManifestV2_DoesNotConsumeSdk.xml",
63    defaults: ["SdkSandboxStorageHostTestDefaults"],
64}
65
66android_test_helper_app {
67    name: "StorageTestCodeProvider",
68    manifest: "codeprovider/StorageTestCodeProvider.xml",
69    defaults: ["platform_app_defaults"],
70    srcs: [
71       "codeprovider/src/**/*.java",
72       ":framework-sdksandbox-sources",
73    ],
74    platform_apis: true,
75}
76