Commit 52598eb4 authored by Yoshitaka Aharen's avatar Yoshitaka Aharen
Browse files

[2155] checkCountersAllZeroExcept() returns void

Conflicts:
	src/bin/auth/tests/statistics_unittest.cc.pre
parent b9b6e36c
...@@ -76,7 +76,9 @@ flatten(std::map<std::string, int>& flat_map, const std::string& prefix, ...@@ -76,7 +76,9 @@ flatten(std::map<std::string, int>& flat_map, const std::string& prefix,
} }
} }
bool // Test if the values of the counters are all zero except for the items
// specified in except_for.
void
checkCountersAllZeroExcept(const isc::data::ConstElementPtr counters, checkCountersAllZeroExcept(const isc::data::ConstElementPtr counters,
const std::set<std::string>& except_for) { const std::set<std::string>& except_for) {
std::map<std::string, int> stats_map; std::map<std::string, int> stats_map;
...@@ -95,8 +97,6 @@ checkCountersAllZeroExcept(const isc::data::ConstElementPtr counters, ...@@ -95,8 +97,6 @@ checkCountersAllZeroExcept(const isc::data::ConstElementPtr counters,
<< i->first << " = " << expect << ", actual: " << i->first << " = " << expect << ", actual: "
<< i->second; << i->second;
} }
return false;
} }
TEST_F(CountersTest, incrementNormalQuery) { TEST_F(CountersTest, incrementNormalQuery) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment