summaryrefslogtreecommitdiff
path: root/services/tests/powerservicetests/Android.bp
blob: 2f0633139331a8c04b0d182eb0b3074cba27d6af (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
48
49
50
51
52
53
54
55
56
57
package {
    default_team: "trendy_team_powermanager_framework",
    // See: http://go/android-license-faq
    default_applicable_licenses: ["frameworks_base_license"],
}

android_test {
    name: "PowerServiceTests",

    srcs: [
        "src/**/*.java",
    ],

    static_libs: [
        "truth",
        "flag-junit",
        "frameworks-base-testutils",
        "platform-compat-test-rules",
        "platform-test-annotations",
        "services.core",
        "servicestests-utils",
        "testables",
        "TestParameterInjector",
    ],

    libs: [
        "android.test.mock.stubs.system",
    ],

    defaults: [
        "modules-utils-testable-device-config-defaults",
    ],

    platform_apis: true,
    test_suites: [
        "device-tests",
        "automotive-tests",
    ],

    certificate: "platform",

    dxflags: ["--multi-dex"],

    optimize: {
        enabled: false,
    },
}

test_module_config {
    name: "PowerServiceTests_server_power",
    base: "PowerServiceTests",
    test_suites: [
        "automotive-tests",
        "device-tests",
    ],
    include_filters: ["com.android.server.power"],
}