Lines Matching refs:DNSDomainFromDot
19 TEST_F(DNSUtilTest, DNSDomainFromDot) {
22 EXPECT_TRUE(DNSDomainFromDot("", &out));
24 EXPECT_TRUE(DNSDomainFromDot("com", &out));
26 EXPECT_TRUE(DNSDomainFromDot("google.com", &out));
28 EXPECT_TRUE(DNSDomainFromDot("www.google.com", &out));
32 EXPECT_TRUE(DNSDomainFromDot("123456789a123456789a123456789a123456789a123456789a123456789a123", &out));
36 EXPECT_FALSE(DNSDomainFromDot("123456789a123456789a123456789a123456789a123456789a123456789a1234", &out));
39 EXPECT_TRUE(DNSDomainFromDot("123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123", &out));
43 EXPECT_FALSE(DNSDomainFromDot("123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.1234", &out));
46 EXPECT_TRUE(DNSDomainFromDot("www.google.com.", &out));
49 EXPECT_TRUE(DNSDomainFromDot(".google.com", &out));
52 EXPECT_TRUE(DNSDomainFromDot("www..google.com", &out));