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

Commit 55e3aec8 authored by Yo Chiang's avatar Yo Chiang Committed by Automerger Merge Worker
Browse files

Merge "Move SingletonTest back to libutils_test" am: 9a57044a am: 8cf6a0b6 am: b9930bb2

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1360220

Change-Id: Iee8ade2c7c51f365676ba1903d93e168d07a1693
parents 283a2f42 b9930bb2
Loading
Loading
Loading
Loading
+8 −21
Original line number Original line Diff line number Diff line
@@ -248,6 +248,7 @@ cc_test {
        "LruCache_test.cpp",
        "LruCache_test.cpp",
        "Mutex_test.cpp",
        "Mutex_test.cpp",
        "SharedBuffer_test.cpp",
        "SharedBuffer_test.cpp",
        "Singleton_test.cpp",
        "String8_test.cpp",
        "String8_test.cpp",
        "String16_test.cpp",
        "String16_test.cpp",
        "StrongPointer_test.cpp",
        "StrongPointer_test.cpp",
@@ -284,6 +285,11 @@ cc_test {
        },
        },
    },
    },


    data_libs: [
        "libutils_test_singleton1",
        "libutils_test_singleton2",
    ],

    cflags: [
    cflags: [
        "-Wall",
        "-Wall",
        "-Wextra",
        "-Wextra",
@@ -294,29 +300,10 @@ cc_test {
    test_suites: ["device-tests"],
    test_suites: ["device-tests"],
}
}


// TODO: the test infrastructure isn't yet capable of running this,
// so it's broken out into its own test so that the main libutils_tests
// can be in presubmit even if this can't.

cc_test {
    name: "libutils_singleton_test",
    srcs: ["Singleton_test.cpp"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
    shared_libs: ["libbase"],

    required: [
        ":libutils_test_singleton1",
        ":libutils_test_singleton2",
    ],
}

cc_test_library {
cc_test_library {
    name: "libutils_test_singleton1",
    name: "libutils_test_singleton1",
    host_supported: true,
    host_supported: true,
    relative_install_path: "libutils_test",
    installable: false,
    srcs: ["Singleton_test1.cpp"],
    srcs: ["Singleton_test1.cpp"],
    cflags: [
    cflags: [
        "-Wall",
        "-Wall",
@@ -327,7 +314,7 @@ cc_test_library {
cc_test_library {
cc_test_library {
    name: "libutils_test_singleton2",
    name: "libutils_test_singleton2",
    host_supported: true,
    host_supported: true,
    relative_install_path: "libutils_test",
    installable: false,
    srcs: ["Singleton_test2.cpp"],
    srcs: ["Singleton_test2.cpp"],
    cflags: [
    cflags: [
        "-Wall",
        "-Wall",