Lines Matching defs:out
20 std::string out;
22 EXPECT_TRUE(DNSDomainFromDot("", &out));
23 EXPECT_EQ(out, IncludeNUL(""));
24 EXPECT_TRUE(DNSDomainFromDot("com", &out));
25 EXPECT_EQ(out, IncludeNUL("\003com"));
26 EXPECT_TRUE(DNSDomainFromDot("google.com", &out));
27 EXPECT_EQ(out, IncludeNUL("\x006google\003com"));
28 EXPECT_TRUE(DNSDomainFromDot("www.google.com", &out));
29 EXPECT_EQ(out, IncludeNUL("\003www\006google\003com"));
32 EXPECT_TRUE(DNSDomainFromDot("123456789a123456789a123456789a123456789a123456789a123456789a123", &out));
33 EXPECT_EQ(out, IncludeNUL("\077123456789a123456789a123456789a123456789a123456789a123456789a123"));
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));
40 EXPECT_EQ(out, IncludeNUL("\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\011123456789\003123"));
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));
47 EXPECT_EQ(out, IncludeNUL("\003www\006google\003com"));
49 EXPECT_TRUE(DNSDomainFromDot(".google.com", &out));
50 EXPECT_EQ(out, IncludeNUL("\006google\003com"));
52 EXPECT_TRUE(DNSDomainFromDot("www..google.com", &out));
53 EXPECT_EQ(out, IncludeNUL("\003www\006google\003com"));