Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Side by Side Diff: net/dns/dns_test_util.h

Issue 9369045: [net] HostResolverImpl + DnsTransaction + DnsConfigService = Asynchronous DNS ready for experiments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to master. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_DNS_DNS_TEST_UTIL_H_ 5 #ifndef NET_DNS_DNS_TEST_UTIL_H_
6 #define NET_DNS_DNS_TEST_UTIL_H_ 6 #define NET_DNS_DNS_TEST_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/dns/dns_protocol.h" 10 #include "net/dns/dns_protocol.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 0x4a, 0x7d, 0xe2, 0xb0, 0xc0, 0x2c, 0x00, 0x01, 46 0x4a, 0x7d, 0xe2, 0xb0, 0xc0, 0x2c, 0x00, 0x01,
47 0x00, 0x01, 0x00, 0x00, 0x00, 0xe4, 0x00, 0x04, 47 0x00, 0x01, 0x00, 0x00, 0x00, 0xe4, 0x00, 0x04,
48 0x4a, 0x7d, 0xe2, 0xb1, 0xc0, 0x2c, 0x00, 0x01, 48 0x4a, 0x7d, 0xe2, 0xb1, 0xc0, 0x2c, 0x00, 0x01,
49 0x00, 0x01, 0x00, 0x00, 0x00, 0xe4, 0x00, 0x04, 49 0x00, 0x01, 0x00, 0x00, 0x00, 0xe4, 0x00, 0x04,
50 0x4a, 0x7d, 0xe2, 0xb2 50 0x4a, 0x7d, 0xe2, 0xb2
51 }; 51 };
52 static const char* const kT0IpAddresses[] = { 52 static const char* const kT0IpAddresses[] = {
53 "74.125.226.179", "74.125.226.180", "74.125.226.176", 53 "74.125.226.179", "74.125.226.180", "74.125.226.176",
54 "74.125.226.177", "74.125.226.178" 54 "74.125.226.177", "74.125.226.178"
55 }; 55 };
56 static const char kT0CanonName[] = "www.l.google.com";
57 static const int kT0TTL = 0x000000e4;
56 58
57 //----------------------------------------------------------------------------- 59 //-----------------------------------------------------------------------------
58 // Query/response set for codereview.chromium.org, ID is fixed to 1. 60 // Query/response set for codereview.chromium.org, ID is fixed to 1.
59 static const char kT1HostName[] = "codereview.chromium.org"; 61 static const char kT1HostName[] = "codereview.chromium.org";
60 static const uint16 kT1Qtype = dns_protocol::kTypeA; 62 static const uint16 kT1Qtype = dns_protocol::kTypeA;
61 static const char kT1DnsName[] = { 63 static const char kT1DnsName[] = {
62 0x0a, 'c', 'o', 'd', 'e', 'r', 'e', 'v', 'i', 'e', 'w', 64 0x0a, 'c', 'o', 'd', 'e', 'r', 'e', 'v', 'i', 'e', 'w',
63 0x08, 'c', 'h', 'r', 'o', 'm', 'i', 'u', 'm', 65 0x08, 'c', 'h', 'r', 'o', 'm', 'i', 'u', 'm',
64 0x03, 'o', 'r', 'g', 66 0x03, 'o', 'r', 'g',
65 0x00 67 0x00
(...skipping 18 matching lines...) Expand all
84 0x01, 0xc0, 0x0c, 0x00, 0x05, 0x00, 0x01, 0x00, 86 0x01, 0xc0, 0x0c, 0x00, 0x05, 0x00, 0x01, 0x00,
85 0x01, 0x41, 0x75, 0x00, 0x12, 0x03, 0x67, 0x68, 87 0x01, 0x41, 0x75, 0x00, 0x12, 0x03, 0x67, 0x68,
86 0x73, 0x01, 0x6c, 0x06, 0x67, 0x6f, 0x6f, 0x67, 88 0x73, 0x01, 0x6c, 0x06, 0x67, 0x6f, 0x6f, 0x67,
87 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00, 0xc0, 89 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00, 0xc0,
88 0x35, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x01, 90 0x35, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x01,
89 0x0b, 0x00, 0x04, 0x40, 0xe9, 0xa9, 0x79 91 0x0b, 0x00, 0x04, 0x40, 0xe9, 0xa9, 0x79
90 }; 92 };
91 static const char* const kT1IpAddresses[] = { 93 static const char* const kT1IpAddresses[] = {
92 "64.233.169.121" 94 "64.233.169.121"
93 }; 95 };
96 static const char kT1CanonName[] = "ghs.l.google.com";
97 static const int kT1TTL = 0x0000010b;
94 98
95 //----------------------------------------------------------------------------- 99 //-----------------------------------------------------------------------------
96 // Query/response set for www.ccs.neu.edu, ID is fixed to 2. 100 // Query/response set for www.ccs.neu.edu, ID is fixed to 2.
97 static const char kT2HostName[] = "www.ccs.neu.edu"; 101 static const char kT2HostName[] = "www.ccs.neu.edu";
98 static const uint16 kT2Qtype = dns_protocol::kTypeA; 102 static const uint16 kT2Qtype = dns_protocol::kTypeA;
99 static const char kT2DnsName[] = { 103 static const char kT2DnsName[] = {
100 0x03, 'w', 'w', 'w', 104 0x03, 'w', 'w', 'w',
101 0x03, 'c', 'c', 's', 105 0x03, 'c', 'c', 's',
102 0x03, 'n', 'e', 'u', 106 0x03, 'n', 'e', 'u',
103 0x03, 'e', 'd', 'u', 107 0x03, 'e', 'd', 'u',
(...skipping 16 matching lines...) Expand all
120 0x03, 0x65, 0x64, 0x75, 0x00, 0x00, 0x01, 0x00, 124 0x03, 0x65, 0x64, 0x75, 0x00, 0x00, 0x01, 0x00,
121 0x01, 0xc0, 0x0c, 0x00, 0x05, 0x00, 0x01, 0x00, 125 0x01, 0xc0, 0x0c, 0x00, 0x05, 0x00, 0x01, 0x00,
122 0x00, 0x01, 0x2c, 0x00, 0x09, 0x06, 0x76, 0x75, 126 0x00, 0x01, 0x2c, 0x00, 0x09, 0x06, 0x76, 0x75,
123 0x6c, 0x63, 0x61, 0x6e, 0xc0, 0x10, 0xc0, 0x2d, 127 0x6c, 0x63, 0x61, 0x6e, 0xc0, 0x10, 0xc0, 0x2d,
124 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x01, 0x2c, 128 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x01, 0x2c,
125 0x00, 0x04, 0x81, 0x0a, 0x74, 0x51 129 0x00, 0x04, 0x81, 0x0a, 0x74, 0x51
126 }; 130 };
127 static const char* const kT2IpAddresses[] = { 131 static const char* const kT2IpAddresses[] = {
128 "129.10.116.81" 132 "129.10.116.81"
129 }; 133 };
134 static const char kT2CanonName[] = "vulcan.ccs.neu.edu";
135 static const int kT2TTL = 0x0000012c;
130 136
131 //----------------------------------------------------------------------------- 137 //-----------------------------------------------------------------------------
132 // Query/response set for www.google.az, ID is fixed to 3. 138 // Query/response set for www.google.az, ID is fixed to 3.
133 static const char kT3HostName[] = "www.google.az"; 139 static const char kT3HostName[] = "www.google.az";
134 static const uint16 kT3Qtype = dns_protocol::kTypeA; 140 static const uint16 kT3Qtype = dns_protocol::kTypeA;
135 static const char kT3DnsName[] = { 141 static const char kT3DnsName[] = {
136 0x03, 'w', 'w', 'w', 142 0x03, 'w', 'w', 'w',
137 0x06, 'g', 'o', 'o', 'g', 'l', 'e', 143 0x06, 'g', 'o', 'o', 'g', 'l', 'e',
138 0x02, 'a', 'z', 144 0x02, 'a', 'z',
139 0x00 145 0x00
(...skipping 27 matching lines...) Expand all
167 0x15, 0x00, 0x04, 0x4a, 0x7d, 0xe2, 0xb4, 0xc0, 173 0x15, 0x00, 0x04, 0x4a, 0x7d, 0xe2, 0xb4, 0xc0,
168 0x47, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 174 0x47, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
169 0x15, 0x00, 0x04, 0x4a, 0x7d, 0xe2, 0xb0, 0xc0, 175 0x15, 0x00, 0x04, 0x4a, 0x7d, 0xe2, 0xb0, 0xc0,
170 0x47, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 176 0x47, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
171 0x15, 0x00, 0x04, 0x4a, 0x7d, 0xe2, 0xb1 177 0x15, 0x00, 0x04, 0x4a, 0x7d, 0xe2, 0xb1
172 }; 178 };
173 static const char* const kT3IpAddresses[] = { 179 static const char* const kT3IpAddresses[] = {
174 "74.125.226.178", "74.125.226.179", "74.125.226.180", 180 "74.125.226.178", "74.125.226.179", "74.125.226.180",
175 "74.125.226.176", "74.125.226.177" 181 "74.125.226.176", "74.125.226.177"
176 }; 182 };
183 static const char kT3CanonName[] = "www.l.google.com";
184 static const int kT3TTL = 0x00000015;
177 185
178 } // namespace net 186 } // namespace net
179 187
180 #endif // NET_DNS_DNS_TEST_UTIL_H_ 188 #endif // NET_DNS_DNS_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698