Index: net/dns/dns_query_unittest.cc |
diff --git a/net/dns/dns_query_unittest.cc b/net/dns/dns_query_unittest.cc |
index ffe02e70a61c0197f417bda6246bc9ee3bf01156..23204153da5c9b10def602b5a95afa224127ed7d 100644 |
--- a/net/dns/dns_query_unittest.cc |
+++ b/net/dns/dns_query_unittest.cc |
@@ -16,25 +16,25 @@ namespace { |
TEST(DnsQueryTest, Constructor) { |
// This includes \0 at the end. |
- const char qname_data[] = "\x03""www""\x07""example""\x03""com"; |
+ const char qname_data[] = |
+ "\x03" |
+ "www" |
+ "\x07" |
+ "example" |
+ "\x03" |
+ "com"; |
const uint8 query_data[] = { |
- // Header |
- 0xbe, 0xef, |
- 0x01, 0x00, // Flags -- set RD (recursion desired) bit. |
- 0x00, 0x01, // Set QDCOUNT (question count) to 1, all the |
- // rest are 0 for a query. |
- 0x00, 0x00, |
- 0x00, 0x00, |
- 0x00, 0x00, |
+ // Header |
+ 0xbe, 0xef, 0x01, 0x00, // Flags -- set RD (recursion desired) bit. |
+ 0x00, 0x01, // Set QDCOUNT (question count) to 1, all the |
+ // rest are 0 for a query. |
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
- // Question |
- 0x03, 'w', 'w', 'w', // QNAME: www.example.com in DNS format. |
- 0x07, 'e', 'x', 'a', 'm', 'p', 'l', 'e', |
- 0x03, 'c', 'o', 'm', |
- 0x00, |
- |
- 0x00, 0x01, // QTYPE: A query. |
- 0x00, 0x01, // QCLASS: IN class. |
+ // Question |
+ 0x03, 'w', 'w', 'w', // QNAME: www.example.com in DNS format. |
+ 0x07, 'e', 'x', 'a', 'm', 'p', 'l', 'e', |
+ 0x03, 'c', 'o', 'm', 0x00, 0x00, 0x01, // QTYPE: A query. |
+ 0x00, 0x01, // QCLASS: IN class. |
}; |
base::StringPiece qname(qname_data, sizeof(qname_data)); |
@@ -52,7 +52,13 @@ TEST(DnsQueryTest, Constructor) { |
TEST(DnsQueryTest, Clone) { |
// This includes \0 at the end. |
- const char qname_data[] = "\x03""www""\x07""example""\x03""com"; |
+ const char qname_data[] = |
+ "\x03" |
+ "www" |
+ "\x07" |
+ "example" |
+ "\x03" |
+ "com"; |
base::StringPiece qname(qname_data, sizeof(qname_data)); |
DnsQuery q1(0, qname, dns_protocol::kTypeA); |