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

Commit 7534750d authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6123763 from 62b76aaa to rvc-release

Change-Id: I58653d4c668add09f3dd03197e2d715bc3d8936f
parents ef35fe23 62b76aaa
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -3,11 +3,8 @@ cc_library_headers {
    export_include_dirs: ["include"],
}

//For the test to use
//TODO: 1. Need to Refactor ResolverStats related code(ex: ResolverController::getDnsInfo).
//         Then removing this library header file.
//      2. Change the imports path in netd/TEST_MAPPING after migrating from
//         system/netd/resolv to packages/modules/resolv.
// Used only by dns_responder_client_ndk.cpp for ResolverStats.h
// TODO: refactor stats to use a Parcel and eliminate this dependency
cc_library_headers {
    name: "libnetd_resolv_internal_headers",
    export_include_dirs: ["."],
@@ -86,7 +83,7 @@ cc_library {
        "libnetdutils",
        "libprotobuf-cpp-lite",
        "libstatslog_resolv",
        "libstatssocket",
        "libstatspush_compat",
        "libsysutils",
        "libutils", // Used by libstatslog_resolv
        "netd_event_listener_interface-ndk_platform",
@@ -145,7 +142,7 @@ genrule {
genrule {
    name: "statslog_resolv.cpp",
    tools: ["stats-log-api-gen"],
    cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_resolv.cpp --module resolv --namespace android,net,stats --importHeader statslog_resolv.h",
    cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_resolv.cpp --module resolv --namespace android,net,stats --importHeader statslog_resolv.h --supportQ",
    out: [
        "statslog_resolv.cpp",
    ],
@@ -159,6 +156,8 @@ cc_library_static {
    export_generated_headers: ["statslog_resolv.h"],
    static_libs: [
        "libcutils",
        "libgtest_prod", // Used by libstatspush_compat
        "libstatspush_compat",
        "libstatssocket",
    ],
}
+4 −0
Original line number Diff line number Diff line
@@ -42,6 +42,10 @@ using android::netdutils::ScopedAddrinfo;
// The buffer size of resolv_gethostbyname().
constexpr unsigned int MAXPACKET = 8 * 1024;

// Specifying 0 in ai_socktype or ai_protocol of struct addrinfo indicates
// that any type or protocol can be returned by getaddrinfo().
constexpr unsigned int ANY = 0;

class TestBase : public ::testing::Test {
  protected:
    struct DnsMessage {
+0 −4
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ cc_test_library {
    ],
    header_libs: [
        "libnetd_resolv_headers",
        "libnetd_resolv_internal_headers",
    ],
    shared_libs: [
        "libbase",
@@ -41,7 +40,6 @@ cc_test {
    ],
    header_libs: [
        "libnetd_client_headers",
        "libnetd_resolv_internal_headers",
    ],
    shared_libs: [
        "libbinder_ndk",
@@ -79,7 +77,6 @@ cc_test {
    ],
    header_libs: [
        "libnetd_resolv_headers",
        "libnetd_resolv_internal_headers",
    ],
    shared_libs: [
        "libbase",
@@ -112,7 +109,6 @@ cc_test {
    ],
    header_libs: [
        "libnetd_resolv_headers",
        "libnetd_resolv_internal_headers",
    ],
    // TODO: make static link libc++ work.
    //stl: "libc++_static",
+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,9 @@ cc_library {
        "libnetd_resolv_headers",
        "libnetd_resolv_internal_headers",
    ],
    export_header_lib_headers: [
        "libnetd_resolv_internal_headers",
    ],
    static_libs: [
        "dnsresolver_aidl_interface-unstable-ndk_platform",
        "libbase",
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@

#include <aidl/android/net/IDnsResolver.h>
#include <aidl/android/net/INetd.h>
#include "ResolverStats.h"
#include "ResolverStats.h"  // TODO: stop depending on this internal header
#include "dns_responder.h"
#include "dns_tls_certificate.h"
#include "params.h"
Loading