diff options
| -rw-r--r-- | libs/vr/libvrflinger/tests/Android.bp | 2 | ||||
| -rw-r--r-- | libs/vr/libvrflinger/tests/vrflinger_test.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libs/vr/libvrflinger/tests/Android.bp b/libs/vr/libvrflinger/tests/Android.bp index 410e2344ce..7fafd3bf50 100644 --- a/libs/vr/libvrflinger/tests/Android.bp +++ b/libs/vr/libvrflinger/tests/Android.bp @@ -11,6 +11,7 @@ shared_libs = [ "libutils", "libnativewindow", "libpdx_default_transport", + "libSurfaceFlingerProp", ] static_libs = [ @@ -32,5 +33,6 @@ cc_test { "-Wall", "-Werror", ], + header_libs: ["libsurfaceflinger_headers"], name: "vrflinger_test", } diff --git a/libs/vr/libvrflinger/tests/vrflinger_test.cpp b/libs/vr/libvrflinger/tests/vrflinger_test.cpp index 7075e88267..efd6d1dcd7 100644 --- a/libs/vr/libvrflinger/tests/vrflinger_test.cpp +++ b/libs/vr/libvrflinger/tests/vrflinger_test.cpp @@ -1,3 +1,4 @@ +#include <SurfaceFlingerProperties.h> #include <android/hardware/configstore/1.0/ISurfaceFlingerConfigs.h> #include <android/hardware/configstore/1.1/types.h> #include <android/hardware_buffer.h> @@ -147,9 +148,7 @@ TEST(VrFlingerTest, ActivateDeactivate) { // Exit immediately if the device doesn't support vr flinger. This ConfigStore // check is the same mechanism used by surface flinger to decide if it should // initialize vr flinger. - bool vr_flinger_enabled = - getBool<ISurfaceFlingerConfigs, &ISurfaceFlingerConfigs::useVrFlinger>( - false); + bool vr_flinger_enabled = android::sysprop::use_vr_flinger(false); if (!vr_flinger_enabled) { return; } |