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

Side by Side Diff: net/dns/dns_response_unittest.cc

Issue 9369045: [net] HostResolverImpl + DnsTransaction + DnsConfigService = Asynchronous DNS ready for experiments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for test-drive. 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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698