diff options
Diffstat (limited to 'chromium/net/dns/dns_test_util.h')
-rw-r--r-- | chromium/net/dns/dns_test_util.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/chromium/net/dns/dns_test_util.h b/chromium/net/dns/dns_test_util.h index bc056cd8a80..40c619976a0 100644 --- a/chromium/net/dns/dns_test_util.h +++ b/chromium/net/dns/dns_test_util.h @@ -23,7 +23,6 @@ #include "net/dns/dns_response.h" #include "net/dns/dns_transaction.h" #include "net/dns/dns_util.h" -#include "net/dns/esni_content.h" #include "net/dns/public/dns_protocol.h" #include "net/socket/socket_test_util.h" @@ -184,22 +183,6 @@ static const char* const kT4IpAddresses[] = {"172.217.6.195"}; static const int kT4TTL = 0x0000012b; static const unsigned kT4RecordCount = base::size(kT0IpAddresses); -//-------------------------------------------------------------------- -// A well-formed ESNI (TLS 1.3 Encrypted Server Name Indication, -// draft 4) keys object ("ESNIKeys" member of the ESNIRecord struct from -// the spec). -// -// (This is cribbed from boringssl SSLTest.ESNIKeysDeserialize (CL 37704/13).) -extern const char kWellFormedEsniKeys[]; -extern const size_t kWellFormedEsniKeysSize; - -// Returns a well-formed ESNI keys object identical to kWellFormedEsniKeys, -// except that the first 0x22 bytes of |custom_data| are written over -// fields of the keys object in a manner that leaves length prefixes -// correct and enum members valid, and so that distinct values of -// |custom_data| result in distinct returned keys. -std::string GenerateWellFormedEsniKeys(base::StringPiece custom_data = ""); - class AddressSorter; class DnsClient; class DnsSession; @@ -241,10 +224,9 @@ std::unique_ptr<DnsResponse> BuildTestDnsServiceResponse( std::vector<TestServiceRecord> service_records, std::string answer_name = ""); -std::unique_ptr<DnsResponse> BuildTestDnsEsniResponse( +std::unique_ptr<DnsResponse> BuildTestDnsIntegrityResponse( std::string hostname, - std::vector<EsniContent> esni_records, - std::string answer_name = ""); + const std::vector<uint8_t>& serialized_rdata); struct MockDnsClientRule { enum ResultType { |