[Nearby] Fix CrosToPhoneInContacts tests

This CL:
1. Disables nearby share before setting up the device to
prevent starting advertising in an illegal state.
2. Uses the same account on both the sender and receiver
to work around the delay in syncing contacts from
contacts.google.com to the phones contact book. This
is necessary so that the receiver can decrypt the
phones certificate.

BUG=b:208932948
TEST=tast run <dut> '("group:nearby-share")'

Change-Id: Ib1162135df8c8470c38eac2741871a11e1a54733
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3447695
Reviewed-by: Kyle Shimabukuro <[email protected]>
Tested-by: Claude van der Merwe <[email protected]>
Commit-Queue: Claude van der Merwe <[email protected]>
(cherry picked from commit 152f69d6e24fe83fe2e8bffd376ea6c360e5105d)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/3461277
Reviewed-by: Claude van der Merwe <[email protected]>
Reviewed-by: David Haddock <[email protected]>
Commit-Queue: Kyle Shimabukuro <[email protected]>
Tested-by: Kyle Shimabukuro <[email protected]>
4 files changed
tree: b61b3dd3c9d98f2d7cf8879d9ef42a72498aacc0
  1. android/
  2. helpers/
  3. src/
  4. tools/
  5. vars/
  6. .gitignore
  7. LICENSE
  8. OWNERS
  9. PRESUBMIT.cfg
  10. PRESUBMIT.py
  11. README.md
  12. unblocked_terms.txt
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