summaryrefslogtreecommitdiff
path: root/include/dps.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dps.h')
-rw-r--r--include/dps.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/dps.h b/include/dps.h
index 151c6b3f09..0cb2a9455b 100644
--- a/include/dps.h
+++ b/include/dps.h
@@ -1,4 +1,4 @@
-/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -68,4 +68,14 @@ bool dps_is_enabled(void);
*/
void dps_update_stabilized_time(int port);
+#ifdef TEST_BUILD
+__test_only void dps_enable(bool en);
+__test_only int dps_init(void);
+__test_only struct dps_config_t *dps_get_config(void);
+__test_only bool dps_is_fake_enabled(void);
+__test_only int dps_get_fake_mv(void);
+__test_only int dps_get_fake_ma(void);
+__test_only int *dps_get_debug_level(void);
+#endif
+
#endif /* __CROS_EC_DPS__H */