mojo: Fix Blink's shutdown sequence in AxProviderImplTest

This patch ensures the sequence used to tear down Blink in
AxProviderImplTest matches the real implementation in RenderThreadImpl.
Specifically, we need to shut down the scheduler before terminating
Blink, because otherwise the scheduler might keep pointers to tasks
that live on the Blink heap and access freed memory in its destructor.

We also add an assertion to the renderer scheduler that it is shut down
explicitly.

Note that Blink cannot shut down the scheduler internally because of
crbug.com/467369. We expect that this depedency can be cleaned up once
the message loop is better integrated with the scheduler
(crbug.com/465354) and when the Blink repository has been merged into
Chromium.

BUG=463143

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

Cr-Commit-Position: refs/heads/master@{#332221}
5 files changed