Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc1ecc7b authored by Bernie Innocenti's avatar Bernie Innocenti Committed by android-build-merger
Browse files

Include NetdClient.h where needed (and only there) am: 96f82d1612

am: bd63e98570

Change-Id: I467aa230136e990c178f78b5e32787a7da223790
parents fd9ee90a 41b82c41
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -15,11 +15,15 @@
 */

#define LOG_TAG "dns_responder_client"

#include "dns_responder_client.h"

#include <android-base/stringprintf.h>
#include <utils/Log.h>

#include "NetdClient.h"
#include "binder/IServiceManager.h"

// TODO: make this dynamic and stop depending on implementation details.
#define TEST_OEM_NETWORK "oem29"
#define TEST_NETID 30
+0 −7
Original line number Diff line number Diff line
@@ -22,15 +22,8 @@
#include <string>
#include <vector>

#include <cutils/sockets.h>

#include <private/android_filesystem_config.h>
#include <utils/StrongPointer.h>

#include "NetdClient.h"
#include "android/net/IDnsResolver.h"
#include "android/net/INetd.h"
#include "binder/IServiceManager.h"
#include "dns_responder.h"

inline const std::vector<std::string> kDefaultServers = {"127.0.0.3"};
+16 −19
Original line number Diff line number Diff line
@@ -17,17 +17,27 @@

#define LOG_TAG "resolv_integration_test"

#include <android-base/parseint.h>
#include <android-base/stringprintf.h>
#include <android-base/unique_fd.h>
#include <android/multinetwork.h>  // ResNsendFlags
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <cutils/sockets.h>
#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>
#include <netdb.h>
#include <netinet/in.h>
#include <openssl/base64.h>
#include <poll.h> /* poll */
#include <private/android_filesystem_config.h>
#include <resolv.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <utils/Log.h>

#include <algorithm>
#include <chrono>
@@ -35,31 +45,18 @@
#include <numeric>
#include <thread>

#include <android-base/parseint.h>
#include <android-base/stringprintf.h>
#include <android-base/unique_fd.h>
#include <android/multinetwork.h>  // ResNsendFlags
#include <cutils/sockets.h>
#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>
#include <openssl/base64.h>
#include <private/android_filesystem_config.h>
#include <utils/Log.h>

#include "netd_resolv/params.h"  // MAXNS
#include "netid_client.h"        // NETID_UNSET

#include "dns_responder/dns_responder.h"
#include "dns_responder/dns_responder_client.h"
#include "dns_responder/dns_tls_frontend.h"

#include "NetdClient.h"
#include "NetdConstants.h"
#include "ResolverStats.h"

#include "android/net/IDnsResolver.h"
#include "binder/IServiceManager.h"
#include "dns_responder/dns_responder.h"
#include "dns_responder/dns_responder_client.h"
#include "dns_responder/dns_tls_frontend.h"
#include "netd_resolv/params.h"  // MAXNS
#include "netdutils/ResponseCode.h"
#include "netdutils/SocketOption.h"
#include "netid_client.h"  // NETID_UNSET
#include "tests/resolv_test_utils.h"

// Valid VPN netId range is 100 ~ 65535