android.os.IPingResponder -> android.aidl.tests.ITestService
Rename the aidl file and all references in the code to reflect that this
is the interface we're using in integration tests to validate our
runtime behavior.
Bug: 25159441
Test: Compiles, unittests pass
Change-Id: Ib31d33d87486fcc38b0812e772c6723d7f750cd6
diff --git a/tests/aidl_test_client.cpp b/tests/aidl_test_client.cpp
index 0f285a4..7097edb 100644
--- a/tests/aidl_test_client.cpp
+++ b/tests/aidl_test_client.cpp
@@ -20,7 +20,7 @@
#include <utils/String16.h>
#include <utils/StrongPointer.h>
-#include "android/os/IPingResponder.h"
+#include "android/aidl/tests/ITestService.h"
// libutils:
using android::OK;
@@ -32,7 +32,7 @@
using android::getService;
// generated
-using android::os::IPingResponder;
+using android::aidl::tests::ITestService;
using std::cerr;
using std::cout;
@@ -40,9 +40,9 @@
namespace {
-const char kServiceName[] = "android.os.IPingResponder";
+const char kServiceName[] = "android.aidl.tests.ITestService";
-bool ConfirmBasicPing(const sp<IPingResponder>& service) {
+bool ConfirmBasicPing(const sp<ITestService>& service) {
cout << "Confirming basic ping functionality." << endl;
const int32_t kIncrement = 1 << 20;
for (int32_t i = 0; i < 3; ++i) {
@@ -61,8 +61,8 @@
return true;
}
-bool GetService(sp<IPingResponder>* service) {
- cout << "Retrieving ping service binder" << endl;
+bool GetService(sp<ITestService>* service) {
+ cout << "Retrieving test service binder" << endl;
status_t status = getService(String16(kServiceName), service);
if (status != OK) {
cerr << "Failed to get service binder: '" << kServiceName
@@ -75,7 +75,7 @@
} // namespace
int main(int /* argc */, char * /* argv */ []) {
- sp<IPingResponder> service;
+ sp<ITestService> service;
if (!GetService(&service)) return 1;