blob: 1cf170e059333a4c2435a578681053868cdda67c [file] [log] [blame]
Lais Andrade4d51f6c2020-03-25 10:58:31 +00001// Copyright (C) 2020 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
Lais Andradec86c1d22020-03-30 20:17:42 +010015
Lais Andrade4d51f6c2020-03-25 10:58:31 +000016cc_test {
17 name: "powermanager_test",
18 test_suites: ["device-tests"],
19 srcs: [
Lais Andradec86c1d22020-03-30 20:17:42 +010020 "PowerHalLoaderTest.cpp",
Lais Andrade4d51f6c2020-03-25 10:58:31 +000021 "PowerHalWrapperAidlTest.cpp",
22 "PowerHalWrapperHidlV1_0Test.cpp",
23 "PowerHalWrapperHidlV1_1Test.cpp",
24 ],
25 cflags: [
26 "-Wall",
27 "-Werror",
28 "-Wextra",
29 ],
30 shared_libs: [
31 "libbase",
32 "libbinder",
33 "libhidlbase",
34 "liblog",
35 "libpowermanager",
36 "libutils",
37 "android.hardware.power@1.0",
38 "android.hardware.power@1.1",
39 "android.hardware.power-cpp",
40 ],
41 static_libs: [
42 "libgmock",
43 ],
44}
45
46cc_test {
47 name: "thermalmanager_test",
48 test_suites: ["device-tests"],
49 srcs: ["IThermalManagerTest.cpp",],
50 cflags: [
51 "-Wall",
52 "-Werror",
53 "-Wextra",
54 ],
55 shared_libs: [
56 "libbase",
57 "libhidlbase",
58 "liblog",
59 "libpowermanager",
60 "libbinder",
61 "libutils",
62 ],
63}