summaryrefslogtreecommitdiff
path: root/test/ares-test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/ares-test.h')
-rw-r--r--test/ares-test.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/ares-test.h b/test/ares-test.h
index e92bf3b..9337915 100644
--- a/test/ares-test.h
+++ b/test/ares-test.h
@@ -2,13 +2,13 @@
#ifndef ARES_TEST_H
#define ARES_TEST_H
-#include "dns-proto.h"
-// Include ares internal file for DNS protocol constants
-#include "nameser.h"
-
#include "ares_setup.h"
#include "ares.h"
+#include "dns-proto.h"
+// Include ares internal file for DNS protocol constants
+#include "ares_nameser.h"
+
#include "gtest/gtest.h"
#include "gmock/gmock.h"
@@ -162,7 +162,8 @@ class MockServer {
private:
void ProcessRequest(int fd, struct sockaddr_storage* addr, int addrlen,
int qid, const std::string& name, int rrtype);
-
+ void ProcessPacket(int fd, struct sockaddr_storage *addr, socklen_t addrlen,
+ byte *data, int len);
int udpport_;
int tcpport_;
int udpfd_;
@@ -246,6 +247,7 @@ std::ostream& operator<<(std::ostream& os, const HostEnt& result);
// Structure that describes the result of an ares_host_callback invocation.
struct HostResult {
+ HostResult() : done_(false), status_(0), timeouts_(0) {}
// Whether the callback has been invoked.
bool done_;
// Explicitly provided result information.