summaryrefslogtreecommitdiff
path: root/init/test_utils/service_utils.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2020-02-07 13:39:35 -0800
committerSteven Moreland <smoreland@google.com>2020-02-07 13:39:35 -0800
commitbb44cd6ea18337e67c9ef97b5756c5dd9d1a163a (patch)
tree94203b8808651cdcd1f721fbfb12e4c077622423 /init/test_utils/service_utils.cpp
parent62662cf189e56482cf42eccfe74f8812f76fd9bc (diff)
libinit_test_utils: don't assume interface format
These can be AIDL or HIDL interfaces. Avoiding assuming the format here. Bug: 141008902 Test: vts_ibase_test Change-Id: If60367e3a46c74a1d28548379655f5e211f58b73
Diffstat (limited to 'init/test_utils/service_utils.cpp')
-rw-r--r--init/test_utils/service_utils.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/init/test_utils/service_utils.cpp b/init/test_utils/service_utils.cpp
index bc0070268..ae68679bd 100644
--- a/init/test_utils/service_utils.cpp
+++ b/init/test_utils/service_utils.cpp
@@ -47,14 +47,7 @@ android::base::Result<ServiceInterfacesMap> GetOnDeviceServiceInterfacesMap() {
for (const auto& service : service_list.services()) {
// Create an entry for all services, including services that may not
// have any declared interfaces.
- result[service->name()] = std::set<android::FqInstance>();
- for (const auto& intf : service->interfaces()) {
- android::FqInstance fqInstance;
- if (!fqInstance.setTo(intf)) {
- return android::base::Error() << "Unable to parse interface: '" << intf << "'";
- }
- result[service->name()].insert(fqInstance);
- }
+ result[service->name()] = service->interfaces();
}
return result;
}