Commit 9d4107f2 authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Remove one LazyThreadControllerForTest usage of the two

LazyThreadControllerForTest makes it hard to write tests related to task
runners. We aim to remove this class, and this CL is one of the steps.

In media unittests, LazyThreadControllerForTest is not necessary. Use
WebThreadScheduler::CreateMainThreadScheduler instead.

Bug: 870606
Change-Id: I0976c4db02e466f06247bf5a82654734f6c7d7bd
Reviewed-on: https://chromium-review.googlesource.com/1250684Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Reviewed-by: default avatarXiaohan Wang <xhwang@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595725}
parent 0fa81ba6
...@@ -40,7 +40,8 @@ class BlinkPlatformWithTaskEnvironment : public blink::Platform { ...@@ -40,7 +40,8 @@ class BlinkPlatformWithTaskEnvironment : public blink::Platform {
public: public:
BlinkPlatformWithTaskEnvironment() BlinkPlatformWithTaskEnvironment()
: main_thread_scheduler_( : main_thread_scheduler_(
blink::scheduler::CreateWebMainThreadSchedulerForTests()) {} blink::scheduler::WebThreadScheduler::CreateMainThreadScheduler()) {
}
~BlinkPlatformWithTaskEnvironment() override { ~BlinkPlatformWithTaskEnvironment() override {
main_thread_scheduler_->Shutdown(); main_thread_scheduler_->Shutdown();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment