summaryrefslogtreecommitdiffstats
path: root/net/dns/dns_query_unittest.cc
diff options
context:
space:
mode:
authorAvi Drissman <avi@chromium.org>2015-12-19 23:40:46 -0500
committerAvi Drissman <avi@chromium.org>2015-12-20 04:42:28 +0000
commit13fc893acb88fdd82ad7eea72f9499d123bf5a89 (patch)
tree76aa2bdaa56cb2d05bbf2a6af57e440f9661c7f0 /net/dns/dns_query_unittest.cc
parente40cbca89ebc83b5bef0f892d80604b00a98abc8 (diff)
downloadchromium_src-13fc893acb88fdd82ad7eea72f9499d123bf5a89.zip
chromium_src-13fc893acb88fdd82ad7eea72f9499d123bf5a89.tar.gz
chromium_src-13fc893acb88fdd82ad7eea72f9499d123bf5a89.tar.bz2
Switch to standard integer types in net/.
BUG=488550 TBR=mmenke@chromium.org Review URL: https://codereview.chromium.org/1535363003 . Cr-Commit-Position: refs/heads/master@{#366297}
Diffstat (limited to 'net/dns/dns_query_unittest.cc')
-rw-r--r--net/dns/dns_query_unittest.cc31
1 files changed, 13 insertions, 18 deletions
diff --git a/net/dns/dns_query_unittest.cc b/net/dns/dns_query_unittest.cc
index bd8bf3a..2a4648e 100644
--- a/net/dns/dns_query_unittest.cc
+++ b/net/dns/dns_query_unittest.cc
@@ -15,24 +15,19 @@ namespace {
TEST(DnsQueryTest, Constructor) {
// This includes \0 at the end.
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,
-
- // 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.
+ const uint8_t 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,
+
+ // 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));