Chromium Code Reviews| Index: net/dns/record_rdata.cc |
| diff --git a/net/dns/record_rdata.cc b/net/dns/record_rdata.cc |
| index ff9434b489e11a958f44b7d485a00279d28838d8..1180d46973d0ed2dbd5c2601225f743ec33b85ab 100644 |
| --- a/net/dns/record_rdata.cc |
| +++ b/net/dns/record_rdata.cc |
| @@ -259,6 +259,11 @@ uint16_t NsecRecordRdata::Type() const { |
| return NsecRecordRdata::kType; |
| } |
| +uint16_t NsecRecordRdata::bitmap_length() const { |
| + DCHECK_LE(bitmap_.size(), 32u); |
|
Ryan Sleevi
2016/07/06 15:28:58
It's unclear if you added this DCHECK as documenta
|
| + return static_cast<uint16_t>(bitmap_.size() * 8); |
| +} |
| + |
| bool NsecRecordRdata::IsEqual(const RecordRdata* other) const { |
| if (other->Type() != Type()) |
| return false; |