Implemented tracing of the user-switch event.
Added functionaility for creating the UserSwitchCommandExecutor
in command.py, implemented the UserSwitchCommandExecutor class
in command_executor.py, which performs the tracing of the
user-switch event, and added 8 new unit tests in a new class named
UserSwitchCommandExecutorUnitTest in command_executor_unit_test.py.
Additionally, added error checking to 2 calls of user_exists
in the validate method of command.py. Finally, renamed 2 constants
and removed an unused constant from command_executor_unit_test.py.
Test: atest command_executor_unit_test
Bug: 356402331
Change-Id: I5f46f25920a77690bfcd133b3459985134190fc9
3 files changed