summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-11-25 18:06:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-11-25 18:06:24 +0000
commit741347b49d67ca35e4963f0ae2d26dfa140deb9b (patch)
tree5a7e02b7233b02d38665b08f77d1f1b354e2836a /tests
parent2fb810f495dbda02c7e7523b6e1220fe53d42089 (diff)
parent43d168751c71c09c2a297c0e521010d02faff71d (diff)
Merge "vibrator extension: use checked_interface_cast"
Diffstat (limited to 'tests')
-rw-r--r--tests/extension/vibrator/aidl/client/test-cpp-client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/extension/vibrator/aidl/client/test-cpp-client.cpp b/tests/extension/vibrator/aidl/client/test-cpp-client.cpp
index f6f5537104..015a3453cb 100644
--- a/tests/extension/vibrator/aidl/client/test-cpp-client.cpp
+++ b/tests/extension/vibrator/aidl/client/test-cpp-client.cpp
@@ -20,9 +20,9 @@
#include <binder/IServiceManager.h>
#include <gtest/gtest.h>
+using android::checked_interface_cast;
using android::IBinder;
using android::IInterface;
-using android::interface_cast;
using android::OK;
using android::sp;
using android::waitForVintfService;
@@ -44,7 +44,7 @@ TEST(Cpp, CallExtMethod) {
// getting the extension
sp<IBinder> ext;
ASSERT_EQ(OK, IInterface::asBinder(vib)->getExtension(&ext));
- sp<ICustomVibrator> cvib = interface_cast<ICustomVibrator>(ext);
+ sp<ICustomVibrator> cvib = checked_interface_cast<ICustomVibrator>(ext);
ASSERT_NE(nullptr, cvib.get());
// calling extension method