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

Unified Diff: extensions/renderer/module_system_test.h

Issue 2610473002: Use TaskScheduler instead of WorkerPool in v8_platform.cc. (Closed)
Patch Set: rebase 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 | « extensions/renderer/gc_callback_unittest.cc ('k') | gin/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/module_system_test.h
diff --git a/extensions/renderer/module_system_test.h b/extensions/renderer/module_system_test.h
index 1cfbb7c46fc116eb82db1d8e4f444edd315d6858..3508574dd8fb02756055630dbe7eba4c27b894a1 100644
--- a/extensions/renderer/module_system_test.h
+++ b/extensions/renderer/module_system_test.h
@@ -6,6 +6,7 @@
#define EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_
#include "base/macros.h"
+#include "base/test/scoped_async_task_scheduler.h"
#include "extensions/renderer/module_system.h"
#include "extensions/renderer/script_context.h"
#include "gin/public/context_holder.h"
@@ -98,6 +99,10 @@ class ModuleSystemTest : public testing::Test {
void RunResolvedPromises();
private:
+ // Required by gin::V8Platform::CallOnBackgroundThread(). Can't be a
+ // ScopedTaskScheduler because v8 synchronously waits for tasks to run.
+ base::test::ScopedAsyncTaskScheduler scoped_async_task_scheduler_;
+
v8::Isolate* isolate_;
std::unique_ptr<ModuleSystemTestEnvironment> env_;
bool should_assertions_be_made_;
« no previous file with comments | « extensions/renderer/gc_callback_unittest.cc ('k') | gin/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698