Changes to get mash browser_tests shutdown working correctly

. Adds ability to set callback on MojoShellConnection when shell is
  lost, and wires through in chrome side to trigger exiting.
. Adds ability for TestLauncherDelegate to be notified after tests
  have run. Needed so I can shutdown state while AtExitManager is
  valid.
. Made context not attempt to shutdown edk if context did not start
  edk.
. Made MashBrowserTestsMain shutdown MojoTestConnector at a time when
  it can be shutdown.

BUG=581733
TEST=covered by tests
R=jam@chromium.org

Review URL: https://codereview.chromium.org/1822213002

Cr-Commit-Position: refs/heads/master@{#382864}


CrOS-Libchrome-Original-Commit: 220db613792b3fa65361e478ddd00da753e7aa7c
2 files changed
tree: 87c48d484a7830c63c5a57b37a680466dc496fdc
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/