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

Commit 77cbc789 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Support waiting for surfaceflinger service to stop before test starts"...

Merge "Support waiting for surfaceflinger service to stop before test starts" am: 1d8b9fc0 am: e8140756 am: 41d7e091

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1486339

Change-Id: I967f4c441ba2bce676c6a5716117a4b58bc2c80e
parents cbe3b69a 41d7e091
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ cc_test {

    // TODO(b/64437680): Assume these libs are always available on the device.
    shared_libs: [
        "libbase",
        "libfmq",
        "libsync",
        "android.hardware.graphics.mapper@2.0",
+13 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#define LOG_TAG "graphics_composer_hidl_hal_test"

#include <android-base/logging.h>
#include <android-base/properties.h>
#include <composer-vts/2.1/ComposerVts.h>
#include <composer-vts/2.1/GraphicsComposerCallback.h>
#include <composer-vts/2.1/TestCommandReader.h>
@@ -1102,3 +1103,15 @@ INSTANTIATE_TEST_SUITE_P(
}  // namespace graphics
}  // namespace hardware
}  // namespace android

int main(int argc, char** argv) {
    ::testing::InitGoogleTest(&argc, argv);

    using namespace std::chrono_literals;
    if (!android::base::WaitForProperty("init.svc.surfaceflinger", "stopped", 10s)) {
        ALOGE("Failed to stop init.svc.surfaceflinger");
        return -1;
    }

    return RUN_ALL_TESTS();
}
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ cc_test {
        "libEGL",
        "libGLESv1_CM",
        "libGLESv2",
        "libbase",
        "libfmq",
        "libgui",
        "libhidlbase",
+13 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#define LOG_TAG "graphics_composer_hidl_hal_test@2.2"

#include <android-base/logging.h>
#include <android-base/properties.h>
#include <android/hardware/graphics/mapper/2.0/IMapper.h>
#include <composer-vts/2.1/GraphicsComposerCallback.h>
#include <composer-vts/2.1/TestCommandReader.h>
@@ -700,3 +701,15 @@ INSTANTIATE_TEST_SUITE_P(
}  // namespace graphics
}  // namespace hardware
}  // namespace android

int main(int argc, char** argv) {
    ::testing::InitGoogleTest(&argc, argv);

    using namespace std::chrono_literals;
    if (!android::base::WaitForProperty("init.svc.surfaceflinger", "stopped", 10s)) {
        ALOGE("Failed to stop init.svc.surfaceflinger");
        return -1;
    }

    return RUN_ALL_TESTS();
}
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ cc_test {

    // TODO(b/64437680): Assume these libs are always available on the device.
    shared_libs: [
        "libbase",
        "libfmq",
        "libhidlbase",
        "libsync",
Loading