media/gpu/veaunittest: Initialize Ozone in global environment

The Ozone initialization and creation of the rendering thread was
performed before running each individual tests. This triggers a
CalledOnValidSequence() DCHECK in Debug builds when
AfterSandboxEntry() tries to start the DRM thread for the second time,
and Thread::Start() is called from a different thread that with the
first test.

Fix this by moving all Ozone initialization and the rendering thread to
the global test environment.

TEST=Checked that VEA was passing on Cheza with --single-process-tests.

Change-Id: Ic9b52a31310b40c99368620ea78cf861d084032d
Commit-Queue: Alexandre Courbot <>
Reviewed-by: Hirokazu Honda <>
Cr-Commit-Position: refs/heads/master@{#616633}
1 file changed