summaryrefslogtreecommitdiff
path: root/android/app/tests/unit/Android.bp
blob: ab9fe68b48989a26f460d325a8eed53542131df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

android_test {
    name: "BluetoothInstrumentationTests",

    // We only want this apk build for tests.
    certificate: ":com.android.bluetooth.certificate",

    libs: [
        "javax.obex",
        "android.test.runner",
        "telephony-common",
        "libprotobuf-java-micro",
        "android.test.base",
        "android.test.mock",
    ],

    static_libs: [
        "androidx.test.ext.truth",
        "androidx.test.rules",
        "mockito-target",
        "androidx.test.espresso.intents",
        "gson-prebuilt-jar",
        "androidx.room_room-migration",
        "androidx.room_room-runtime",
        "androidx.room_room-testing",
        "truth-prebuilt",
        "PlatformProperties"
    ],

    asset_dirs: ["src/com/android/bluetooth/btservice/storage/schemas"],

    // Include all test java files.
    srcs: ["src/**/*.java"],

    platform_apis: true,

    test_suites: [
        "device-tests",
        "mts-bluetooth",
    ],

    instrumentation_for: "Bluetooth",

}