Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6791803d authored by terryguan's avatar terryguan
Browse files

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
Change-Id: Ic3cb8bf3e606847ff55d719900ad0b764b56aaf4
parent 614337fd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1015,9 +1015,11 @@ DumpResult FakeVehicleHardware::dump(const std::vector<std::string>& 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());
    }