#include "net/dns/opt_record_rdata.h"
#include <algorithm>
#include <memory>
#include <optional>
#include <string_view>
#include <utility>
#include "base/big_endian.h"
#include "net/dns/dns_response.h"
#include "net/dns/dns_test_util.h"
#include "net/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
ElementsAreArray;
IsNull;
NotNull;
SizeIs;
std::string_view MakeStringPiece(const uint8_t* data, unsigned size) { … }
TEST(OptRecordRdataTest, ParseOptRecord) { … }
TEST(OptRecordRdataTest, ParseOptRecordWithShorterSizeThanData) { … }
TEST(OptRecordRdataTest, ParseOptRecordWithLongerSizeThanData) { … }
TEST(OptRecordRdataTest, CreateEdeOpt) { … }
TEST(OptRecordRdataTest, TestEdeInfoCode) { … }
TEST(OptRecordRdataTest, ParseEdeOptRecords) { … }
TEST(OptRecordRdataTest, OptEquality) { … }
TEST(OptRecordRdataTest, EdeRecordTooSmall) { … }
TEST(OptRecordRdataTest, EdeRecordNoExtraText) { … }
TEST(OptRecordRdataTest, EdeRecordExtraTextNonUTF8) { … }
TEST(OptRecordRdataTest, EdeRecordUnknownInfoCode) { … }
TEST(OptRecordRdataTest, CreatePaddingOpt) { … }
TEST(OptRecordRdataTest, ParsePaddingOpt) { … }
TEST(OptRecordRdataTest, AddOptToOptRecord) { … }
TEST(OptRecordRdataTest, EqualityIsOptOrderSensitive) { … }
TEST(OptRecordRdataTest, TestGetOptsOrder) { … }
}
}