Lines Matching refs:makeDnsQueryEvent

47 DnsQueryEvent makeDnsQueryEvent(const Protocol protocol, const NsRcode rcode,  in makeDnsQueryEvent()  function
273 const DnsQueryEvent record = makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 10ms); in TEST_F()
315 const DnsQueryEvent recordNoError = makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 10ms); in TEST_F()
316 const DnsQueryEvent recordTimeout = makeDnsQueryEvent(PROTO_UDP, NS_R_TIMEOUT, 250ms); in TEST_F()
392 const auto eventTcp = makeDnsQueryEvent(PROTO_TCP, rcode, milliseconds(i)); in TEST_F()
393 const auto eventUdp = makeDnsQueryEvent(PROTO_UDP, rcode, milliseconds(i)); in TEST_F()
394 const auto eventDot = makeDnsQueryEvent(PROTO_DOT, rcode, milliseconds(i)); in TEST_F()
439 EXPECT_TRUE(mDnsStats.addStats(server1, makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 10ms))); in TEST_F()
444 EXPECT_TRUE(mDnsStats.addStats(server3, makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 5ms))); in TEST_F()
450 EXPECT_TRUE(mDnsStats.addStats(server2, makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 0ms))); in TEST_F()
455 EXPECT_TRUE(mDnsStats.addStats(server4, makeDnsQueryEvent(PROTO_DOT, NS_R_NO_ERROR, 10ms))); in TEST_F()
460 EXPECT_TRUE(mDnsStats.addStats(server4, makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 500000ms))); in TEST_F()
467 auto recordFromNetworkRestricted = makeDnsQueryEvent(PROTO_UDP, NS_R_INTERNAL_ERROR, 1ms); in TEST_F()
482 EXPECT_FALSE(mDnsStats.addStats(server1, makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 10ms))); in TEST_F()
503 makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 200ms))); in TEST_F()
508 makeDnsQueryEvent(PROTO_UDP, NS_R_NO_ERROR, 100ms))); in TEST_F()
513 makeDnsQueryEvent(PROTO_UDP, NS_R_TIMEOUT, 1000ms))); in TEST_F()
517 makeDnsQueryEvent(PROTO_UDP, NS_R_INTERNAL_ERROR, 1ms))); in TEST_F()