OLD | NEW |
---|---|
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 #include "net/dns/dns_response.h" | 5 #include "net/dns/dns_response.h" |
6 | 6 |
7 #include "net/base/io_buffer.h" | 7 #include "net/base/io_buffer.h" |
8 #include "net/dns/dns_protocol.h" | 8 #include "net/dns/dns_protocol.h" |
9 #include "net/dns/dns_query.h" | 9 #include "net/dns/dns_query.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 | 234 |
235 DnsResourceRecord record; | 235 DnsResourceRecord record; |
236 DnsRecordParser parser = resp.Parser(); | 236 DnsRecordParser parser = resp.Parser(); |
237 EXPECT_TRUE(parser.ParseRecord(&record)); | 237 EXPECT_TRUE(parser.ParseRecord(&record)); |
238 EXPECT_FALSE(parser.AtEnd()); | 238 EXPECT_FALSE(parser.AtEnd()); |
239 EXPECT_TRUE(parser.ParseRecord(&record)); | 239 EXPECT_TRUE(parser.ParseRecord(&record)); |
240 EXPECT_TRUE(parser.AtEnd()); | 240 EXPECT_TRUE(parser.AtEnd()); |
241 EXPECT_FALSE(parser.ParseRecord(&record)); | 241 EXPECT_FALSE(parser.ParseRecord(&record)); |
242 } | 242 } |
243 | 243 |
244 // TODO(szym): Test DnsResponseToAddressList | |
cbentzel
2012/02/10 19:51:08
Yes, please do.
| |
245 | |
244 } // namespace | 246 } // namespace |
245 | 247 |
246 } // namespace net | 248 } // namespace net |
OLD | NEW |