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

Commit 3919e1c9 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Fix dumpsys unit test DumpsysTest.PassAllFlagsToNormalServices

Bug: 79115310
Test: mmm -j56 frameworks/native/cmds/dumpstate &&
      adb sync data  &&
      adb shell /data/nativetest64/dumpstate_test/dumpstate_test &&
      adb shell /data/nativetest/dumpsys_test/dumpsys_test &&
      adb shell /data/nativetest64/dumpsys_test/dumpsys_test &&
      printf "\n\n#### ALL TESTS PASSED ####\n"

Change-Id: I6f83b2f669612f427f52ffc4c12f49cf9f577222
parent 60b63143
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -371,8 +371,8 @@ TEST_F(DumpsysTest, PassAllFlagsToNormalServices) {
                                   IServiceManager::DUMP_FLAG_PRIORITY_NORMAL);
                                   IServiceManager::DUMP_FLAG_PRIORITY_NORMAL);
    ExpectCheckService("Locksmith");
    ExpectCheckService("Locksmith");
    ExpectCheckService("Valet");
    ExpectCheckService("Valet");
    ExpectDumpWithArgs("Locksmith", {"-a", "--dump-priority", "NORMAL"}, "dump1");
    ExpectDumpWithArgs("Locksmith", {"--dump-priority", "NORMAL", "-a"}, "dump1");
    ExpectDumpWithArgs("Valet", {"-a", "--dump-priority", "NORMAL"}, "dump2");
    ExpectDumpWithArgs("Valet", {"--dump-priority", "NORMAL", "-a"}, "dump2");


    CallMain({"--priority", "NORMAL"});
    CallMain({"--priority", "NORMAL"});