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

Commit 7cf8c51f authored by Jiyong Park's avatar Jiyong Park Committed by android-build-merger
Browse files

Merge "add unittests for libnativeloader"

am: ce813ef6

Change-Id: I98333c7dc1937c594ccb1df5658b133fd8ab1d84
parents 3ec2f3ee ce813ef6
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -70,3 +70,26 @@ cc_library_headers {
    host_supported: true,
    export_include_dirs: ["include"],
}

cc_test {
    name: "libnativeloader_test",
    srcs: [
        "native_loader_test.cpp",
        "native_loader.cpp",
        "library_namespaces.cpp",
        "native_loader_namespace.cpp",
        "public_libraries.cpp",
    ],
    cflags: ["-DANDROID"],
    static_libs: [
        "libbase",
        "liblog",
        "libnativehelper",
        "libgmock",
    ],
    header_libs: [
        "libnativebridge-headers",
        "libnativeloader-headers",
    ],
    system_shared_libs: ["libc"],
}
+4 −1
Original line number Diff line number Diff line
@@ -42,7 +42,10 @@ class LibraryNamespaces {
  LibraryNamespaces& operator=(const LibraryNamespaces&) = delete;

  void Initialize();
  void Reset() { namespaces_.clear(); }
  void Reset() {
    namespaces_.clear();
    initialized_ = false;
  }
  NativeLoaderNamespace* Create(JNIEnv* env, uint32_t target_sdk_version, jobject class_loader,
                                bool is_shared, jstring dex_path, jstring java_library_path,
                                jstring java_permitted_path, std::string* error_msg);
+566 −0

File added.

Preview size limit exceeded, changes collapsed.