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

Commit e912c763 authored by Luke Huang's avatar Luke Huang
Browse files

Add libdoh_ffi_for_test required by unit test

To allow unit tests static link libcrypto and libssl.

Test: TH
Bug: 155855709
Change-Id: Ia74c8440715b2e323c8b90be433104c98e48ed83
parent dfc33122
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -372,3 +372,30 @@ rust_test {
    ],
    min_sdk_version: "29",
}

// It's required by unit tests.
rust_ffi_static {
    name: "libdoh_ffi_for_test",
    crate_name: "doh",
    srcs: ["doh.rs"],
    edition: "2018",

    rlibs: [
        "libandroid_logger",
        "libanyhow",
        "liblazy_static",
        "liblibc",
        "liblog_rust",
        "libquiche_static",
        "libring",
        "libtokio",
        "liburl",
    ],
    prefer_rlib: true,

    apex_available: [
        "//apex_available:platform",  // Needed by doh_ffi_test
        "com.android.resolv"
    ],
    min_sdk_version: "29",
}
+1 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ cc_test {
    srcs: ["doh_ffi_test.cpp"],
    static_libs: [
        "libcrypto_static",
        "libdoh_ffi",
        "libdoh_ffi_for_test",
        "libgmock",
        "liblog",
        "libring-core",