summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Manton <cmanton@google.com> 2021-07-17 09:38:29 -0700
committer Chris Manton <cmanton@google.com> 2021-12-09 06:33:00 +0000
commit340168ac376805698264f7e0d7b45193ec23febf (patch)
tree3fc21b321c5dfaf65cfaeeff0d921e28b8b42765
parentbecae910a6330661faa0e302b9291b27d5a3addd (diff)
legacy: Add reset_mock_function_map
Bug: 187825293 Tag: #refactor Test: gd/cert/run Change-Id: If1fac8008caa2f62516f09848f2388e4af078f9d
-rw-r--r--system/test/common/mock_functions.cc2
-rw-r--r--system/test/common/mock_functions.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/system/test/common/mock_functions.cc b/system/test/common/mock_functions.cc
index 01c0d1e5a3..3278b92470 100644
--- a/system/test/common/mock_functions.cc
+++ b/system/test/common/mock_functions.cc
@@ -21,6 +21,8 @@
std::map<std::string, int> mock_function_count_map;
+void reset_mock_function_count_map() { mock_function_count_map.clear(); }
+
void dump_mock_function_count_map() {
LOG_INFO("Mock function count map size:%zu", mock_function_count_map.size());
diff --git a/system/test/common/mock_functions.h b/system/test/common/mock_functions.h
index 8889b86098..d8bf6552a0 100644
--- a/system/test/common/mock_functions.h
+++ b/system/test/common/mock_functions.h
@@ -20,3 +20,4 @@
extern std::map<std::string, int> mock_function_count_map;
void dump_mock_function_count_map();
+void reset_mock_function_count_map();