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

Unified Diff: net/dns/record_parsed_unittest.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: net/dns/record_parsed_unittest.cc
diff --git a/net/dns/record_parsed_unittest.cc b/net/dns/record_parsed_unittest.cc
index 2864dcbe761cdcd6a6115e9e342e7e971331c315..65a60f9a2a5164f893a25317547b208981ca43a8 100644
--- a/net/dns/record_parsed_unittest.cc
+++ b/net/dns/record_parsed_unittest.cc
@@ -13,25 +13,19 @@
namespace net {
static const uint8 kT1ResponseWithCacheFlushBit[] = {
- 0x0a, 'c', 'o', 'd', 'e', 'r', 'e', 'v', 'i', 'e', 'w',
- 0x08, 'c', 'h', 'r', 'o', 'm', 'i', 'u', 'm',
- 0x03, 'o', 'r', 'g',
- 0x00,
- 0x00, 0x05, // TYPE is CNAME.
- 0x80, 0x01, // CLASS is IN with cache flush bit set.
- 0x00, 0x01, // TTL (4 bytes) is 20 hours, 47 minutes, 48 seconds.
- 0x24, 0x74,
- 0x00, 0x12, // RDLENGTH is 18 bytes.
- // ghs.l.google.com in DNS format.
- 0x03, 'g', 'h', 's',
- 0x01, 'l',
- 0x06, 'g', 'o', 'o', 'g', 'l', 'e',
- 0x03, 'c', 'o', 'm',
- 0x00
-};
+ 0x0a, 'c', 'o', 'd', 'e', 'r', 'e', 'v', 'i',
+ 'e', 'w', 0x08, 'c', 'h', 'r', 'o', 'm', 'i',
+ 'u', 'm', 0x03, 'o', 'r', 'g', 0x00, 0x00, 0x05, // TYPE is CNAME.
+ 0x80, 0x01, // CLASS is IN with cache flush bit set.
+ 0x00, 0x01, // TTL (4 bytes) is 20 hours, 47 minutes, 48 seconds.
+ 0x24, 0x74, 0x00, 0x12, // RDLENGTH is 18 bytes.
+ // ghs.l.google.com in DNS format.
+ 0x03, 'g', 'h', 's', 0x01, 'l', 0x06, 'g', 'o',
+ 'o', 'g', 'l', 'e', 0x03, 'c', 'o', 'm', 0x00};
TEST(RecordParsedTest, ParseSingleRecord) {
- DnsRecordParser parser(kT1ResponseDatagram, sizeof(kT1ResponseDatagram),
+ DnsRecordParser parser(kT1ResponseDatagram,
+ sizeof(kT1ResponseDatagram),
sizeof(dns_protocol::Header));
scoped_ptr<const RecordParsed> record;
const CnameRecordRdata* rdata;
@@ -53,15 +47,15 @@ TEST(RecordParsedTest, ParseSingleRecord) {
}
TEST(RecordParsedTest, CacheFlushBitCompare) {
- DnsRecordParser parser1(kT1ResponseDatagram, sizeof(kT1ResponseDatagram),
- sizeof(dns_protocol::Header));
+ DnsRecordParser parser1(kT1ResponseDatagram,
+ sizeof(kT1ResponseDatagram),
+ sizeof(dns_protocol::Header));
parser1.SkipQuestion();
scoped_ptr<const RecordParsed> record1 =
RecordParsed::CreateFrom(&parser1, base::Time());
- DnsRecordParser parser2(kT1ResponseWithCacheFlushBit,
- sizeof(kT1ResponseWithCacheFlushBit),
- 0);
+ DnsRecordParser parser2(
+ kT1ResponseWithCacheFlushBit, sizeof(kT1ResponseWithCacheFlushBit), 0);
scoped_ptr<const RecordParsed> record2 =
RecordParsed::CreateFrom(&parser2, base::Time());
@@ -72,4 +66,4 @@ TEST(RecordParsedTest, CacheFlushBitCompare) {
EXPECT_TRUE(record2->IsEqual(record1.get(), true));
}
-} //namespace net
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698