view-manager: Fix some issues regarding running tests in x11.

During testing, some X11 windows do not get mapped at all (for as yet
not-understood reasons). So the calls to BlockUntilWindowMapped() blocks
indefinitely. So set the override_redirect flag on when creating windows
in tests.

Also:
. Trigger PlatformWindowDelegate::OnAcceleratedWidgetAvailable() after
  mapping the window completes.
. Initialize aura::Env after initializing GL.
. Remove the --use-test-config flag, and instead replace with a combination
  of --use-x11-test-config to set-up X11 for tests (threaded, and turn on
  override_redirect), and the existing
  --override-use-gl-with-osmesa-for-tests.

BUG=523144

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

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


CrOS-Libchrome-Original-Commit: f33f4399b40b281758038d237416e3560aca4e0c
1 file changed
tree: 6e5e5e03a7aa9154faf69f10893868ca67851629
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/