Loading tests/dns_responder/dns_responder.h +4 −0 Original line number Diff line number Diff line Loading @@ -161,6 +161,10 @@ class DNSResponder { : DNSResponder(kDefaultListenAddr, kDefaultListenService, kDefaultErrorCode, mapping_type){}; DNSResponder(unsigned netId, std::string listen_address) : DNSResponder(listen_address) { mNetId = netId; }; ~DNSResponder(); // Functions used for accessing mapping {ADDRESS_OR_HOSTNAME, DNS_HEADER, BINARY_PACKET}. Loading tests/resolv_integration_test.cpp +364 −98 File changed.Preview size limit exceeded, changes collapsed. Show changes tests/resolv_test_utils.h +2 −1 Original line number Diff line number Diff line Loading @@ -82,8 +82,9 @@ struct DnsRecord { // TODO: make this dynamic and stop depending on implementation details. constexpr int TEST_NETID = 30; // Use maximum reserved appId for applications to avoid conflict with existing uids. // Use the biggest two reserved appId for applications to avoid conflict with existing uids. constexpr int TEST_UID = 99999; constexpr int TEST_UID2 = 99998; static constexpr char kLocalHost[] = "localhost"; static constexpr char kLocalHostAddr[] = "127.0.0.1"; Loading Loading
tests/dns_responder/dns_responder.h +4 −0 Original line number Diff line number Diff line Loading @@ -161,6 +161,10 @@ class DNSResponder { : DNSResponder(kDefaultListenAddr, kDefaultListenService, kDefaultErrorCode, mapping_type){}; DNSResponder(unsigned netId, std::string listen_address) : DNSResponder(listen_address) { mNetId = netId; }; ~DNSResponder(); // Functions used for accessing mapping {ADDRESS_OR_HOSTNAME, DNS_HEADER, BINARY_PACKET}. Loading
tests/resolv_integration_test.cpp +364 −98 File changed.Preview size limit exceeded, changes collapsed. Show changes
tests/resolv_test_utils.h +2 −1 Original line number Diff line number Diff line Loading @@ -82,8 +82,9 @@ struct DnsRecord { // TODO: make this dynamic and stop depending on implementation details. constexpr int TEST_NETID = 30; // Use maximum reserved appId for applications to avoid conflict with existing uids. // Use the biggest two reserved appId for applications to avoid conflict with existing uids. constexpr int TEST_UID = 99999; constexpr int TEST_UID2 = 99998; static constexpr char kLocalHost[] = "localhost"; static constexpr char kLocalHostAddr[] = "127.0.0.1"; Loading