refactor vk switch input modality function

Set local storage to SwitchToVoiceInput and SwitchToHandwriting to skip first-time prompt.

BUG=None
TEST=tast run <DUT> inputs.VirtualKeyboardHandwriting* inputs.VirtualKeyboardSpeech*

Change-Id: I33dbd36b180b34d1435267d7443e2825f27f04b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3062539
Commit-Queue: Jun Sheng <shengjun@chromium.org>
Tested-by: Jun Sheng <shengjun@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
2 files changed
tree: 2100fecf2775dd4de5530ad27f9ec6c5e6f7e0d5
  1. .gitignore
  2. LICENSE
  3. OWNERS
  4. PRESUBMIT.cfg
  5. PRESUBMIT.py
  6. README.md
  7. android/
  8. helpers/
  9. src/
  10. tools/
  11. unblocked_terms.txt
  12. vars/
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • helpers/ - Source code for binaries executed by tests.
    • local/ - Helpers for local tests that are compiled and installed to /usr/local/libexec/tast/helpers/local/cros by the tast-local-helpers-cros package.
  • src/chromiumos/tast/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc