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

Unified Diff: ui/gl/test/gl_image_test_template.h

Issue 2708923003: Use base::test::ScopedAsyncTaskScheduler in GLImageTest. (Closed)
Patch Set: fix dependency Created 3 years, 10 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
« no previous file with comments | « ui/gl/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/test/gl_image_test_template.h
diff --git a/ui/gl/test/gl_image_test_template.h b/ui/gl/test/gl_image_test_template.h
index fa34a71e23cf28fc598bbd4730563b35aea77f0c..fdd99836b67fda979f151c01b84de0ef7b574eea 100644
--- a/ui/gl/test/gl_image_test_template.h
+++ b/ui/gl/test/gl_image_test_template.h
@@ -14,7 +14,7 @@
#include "base/strings/stringize_macros.h"
#include "base/strings/stringprintf.h"
-#include "base/task_scheduler/task_scheduler.h"
+#include "base/test/scoped_async_task_scheduler.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/buffer_format_util.h"
@@ -163,10 +163,6 @@ class GLImageTest : public testing::Test {
protected:
// Overridden from testing::Test:
void SetUp() override {
- constexpr int kMaxTaskSchedulerThreads = 3;
- base::TaskScheduler::CreateAndSetSimpleTaskScheduler(
- kMaxTaskSchedulerThreads);
-
GLImageTestSupport::InitializeGL();
surface_ = gl::init::CreateOffscreenGLSurface(gfx::Size());
context_ =
@@ -181,6 +177,7 @@ class GLImageTest : public testing::Test {
}
protected:
+ base::test::ScopedAsyncTaskScheduler scoped_async_task_scheduler_;
scoped_refptr<GLSurface> surface_;
scoped_refptr<GLContext> context_;
GLImageTestDelegate delegate_;
« no previous file with comments | « ui/gl/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698