Searched refs:rcodeCounts (Results 1 – 3 of 3) sorted by relevance
/packages/modules/DnsResolver/ |
D | DnsStats.cpp | 75 return std::tie(sockAddr, total, rcodeCounts, latencyUs) == in operator ==() 76 std::tie(o.sockAddr, o.total, o.rcodeCounts, o.latencyUs); in operator ==() 89 for (const auto& [rcode, counts] : rcodeCounts) { in toString() 128 mStatsData.rcodeCounts[rcode] += 1; in updateStatsData() 132 mStatsData.rcodeCounts[rcode] -= 1; in updateStatsData()
|
D | DnsStatsTest.cpp | 58 const std::map<int, int>& rcodeCounts) { in makeStatsData() argument 62 ret.rcodeCounts = rcodeCounts; in makeStatsData() 560 EXPECT_EQ(data.rcodeCounts.size(), 1U); in TEST_F() 562 const auto it = data.rcodeCounts.find(NS_R_NO_ERROR); in TEST_F() 563 ASSERT_NE(it, data.rcodeCounts.end()); in TEST_F() 566 const auto it = data.rcodeCounts.find(NS_R_TIMEOUT); in TEST_F() 567 ASSERT_NE(it, data.rcodeCounts.end()); in TEST_F() 570 const auto it = data.rcodeCounts.find(NS_R_INTERNAL_ERROR); in TEST_F() 571 ASSERT_NE(it, data.rcodeCounts.end()); in TEST_F()
|
D | DnsStats.h | 47 std::map<int, int> rcodeCounts; member
|