Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: components/display_compositor/yuv_readback_unittest.cc

Issue 2798963003: Use ScopedTaskEnvironment instead of MessageLoop in components unit tests. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/display_compositor/yuv_readback_unittest.cc
diff --git a/components/display_compositor/yuv_readback_unittest.cc b/components/display_compositor/yuv_readback_unittest.cc
index fe595e3364a996f698bca51a3454823b27149c29..bda67318c2502449d25d9931a49acc8debfbd7e3 100644
--- a/components/display_compositor/yuv_readback_unittest.cc
+++ b/components/display_compositor/yuv_readback_unittest.cc
@@ -7,6 +7,7 @@
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/scoped_task_environment.h"
#include "base/test/test_suite.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
@@ -476,7 +477,7 @@ class YUVReadbackTest : public testing::Test {
gpu::gles2::GLES2Interface* gl_;
std::unique_ptr<display_compositor::GLHelper> helper_;
gl::DisableNullDrawGLBindings enable_pixel_output_;
- base::MessageLoop message_loop_;
+ base::test::ScopedTaskEnvironment scoped_task_environment_;
};
TEST_F(YUVReadbackTest, YUVReadbackOptTest) {

Powered by Google App Engine
This is Rietveld 408576698