• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2019 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
15import("../../../gn/perfetto.gni")
16import("../../../gn/perfetto_android_sdk.gni")
17
18assert(enable_perfetto_android_java_sdk)
19
20perfetto_android_library("perfetto_test_lib") {
21  sources =
22      [ "java/com/google/perfetto/sdk/test/SimpleInstrumentationTest.java" ]
23  deps = [
24    "../../../gn:android_test_common",
25    "../main:perfetto_lib",
26  ]
27  manifest = "TestLibraryAndroidManifest.xml"
28  testonly = true
29}
30
31perfetto_android_app("perfetto_java_sdk_test_app") {
32  deps = [ ":perfetto_test_lib" ]
33  manifest = "AndroidTestManifest.xml"
34  testonly = true
35}
36
37perfetto_android_instrumentation_test(
38    "perfetto_java_sdk_instrumentation_test") {
39  app = "../main:perfetto_java_sdk_app"
40  test_app = ":perfetto_java_sdk_test_app"
41  android_bp_test_manifest = "AndroidSelfInstrumentTestManifest.xml"
42  android_bp_test_config = "PerfettoJavaSdkTest.xml"
43  testonly = true
44}
45