summaryrefslogtreecommitdiff
path: root/include/mock_filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mock_filter.h')
-rw-r--r--include/mock_filter.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/mock_filter.h b/include/mock_filter.h
new file mode 100644
index 0000000000..113c227a3b
--- /dev/null
+++ b/include/mock_filter.h
@@ -0,0 +1,22 @@
+/* Copyright 2019 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/*
+ * Filter mocklists for makefile relevant items.
+ * A mocklist is the .mocklist file in test/ and fuzz/ directories.
+ * See common/mock/README.md for more information.
+ */
+
+#ifndef __CROS_EC_MOCK_FILTER_H
+#define __CROS_EC_MOCK_FILTER_H
+
+/* If included directly from Makefile, dump mock list. */
+#ifdef _MAKEFILE
+#define MOCK(n) n
+CONFIG_TEST_MOCK_LIST
+#endif
+
+
+#endif /* __CROS_EC_MOCK_FILTER_H */