diff options
Diffstat (limited to 'tests/aidl_test_client_parcelables.cpp')
-rw-r--r-- | tests/aidl_test_client_parcelables.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/aidl_test_client_parcelables.cpp b/tests/aidl_test_client_parcelables.cpp index 119f5138..17f194d6 100644 --- a/tests/aidl_test_client_parcelables.cpp +++ b/tests/aidl_test_client_parcelables.cpp @@ -677,8 +677,9 @@ std::array<std::array<T, 3>, 2> Make2dArray(std::initializer_list<T> values) { } TEST_F(AidlTest, FixedSizeArrayOverBinder) { - sp<IRepeatFixedSizeArray> service; - ASSERT_EQ(OK, getService(IRepeatFixedSizeArray::descriptor, &service)); + sp<IRepeatFixedSizeArray> service = + android::waitForService<IRepeatFixedSizeArray>(IRepeatFixedSizeArray::descriptor); + ASSERT_NE(service, nullptr); CheckRepeat(service, &IRepeatFixedSizeArray::RepeatBytes, (std::array<uint8_t, 3>{1, 2, 3})); @@ -707,4 +708,4 @@ TEST_F(AidlTest, FixedSizeArrayOverBinder) { CheckRepeat(service, &IRepeatFixedSizeArray::Repeat2dParcelables, Make2dArray<IntParcelable>({p1, p2, p3})); -}
\ No newline at end of file +} |