From 88eb9d0fce7c93ba3b492a8671ac0d6c2945d814 Mon Sep 17 00:00:00 2001 From: terryguan Date: Tue, 22 Aug 2023 17:46:12 -0700 Subject: [PATCH] Add buffer result for generating vendor configs Add buffers to verify the success of generating and restoring vendor configs. Bug: 281835821 Test: atest android.car.apitest.CarPropertyManagerTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6791803d4ad568c8ba66d20199e84746f412df23) Merged-In: Ic3cb8bf3e606847ff55d719900ad0b764b56aaf4 Change-Id: Ic3cb8bf3e606847ff55d719900ad0b764b56aaf4 --- .../aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp b/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp index 46c67a517a..b5b325c5d3 100644 --- a/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp +++ b/automotive/vehicle/aidl/impl/fake_impl/hardware/src/FakeVehicleHardware.cpp @@ -990,9 +990,11 @@ DumpResult FakeVehicleHardware::dump(const std::vector& options) { } else if (EqualsIgnoreCase(option, "--genTestVendorConfigs")) { mAddExtraTestVendorConfigs = true; result.refreshPropertyConfigs = true; + result.buffer = "successfully generated vendor configs"; } else if (EqualsIgnoreCase(option, "--restoreVendorConfigs")) { mAddExtraTestVendorConfigs = false; result.refreshPropertyConfigs = true; + result.buffer = "successfully restored vendor configs"; } else { result.buffer = StringPrintf("Invalid option: %s\n", option.c_str()); }