From e3b5340bd42a6df18ee24d1f35201c14074d4868 Mon Sep 17 00:00:00 2001 From: Etienne Pierre-Doray Date: Fri, 30 Aug 2024 11:15:19 -0400 Subject: [PATCH] Update GetForegroundTaskRunner calls (#199) * Update GetForegroundTaskRunner calls * Format --------- Co-authored-by: Etienne Pierre-doray --- test/cctest/test_platform.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/cctest/test_platform.cc b/test/cctest/test_platform.cc index c2d78938130006..54bcc97ecc8866 100644 --- a/test/cctest/test_platform.cc +++ b/test/cctest/test_platform.cc @@ -24,7 +24,8 @@ class RepostingTask : public v8::Task { if (repost_count_ > 0) { --repost_count_; std::shared_ptr task_runner = - platform_->GetForegroundTaskRunner(isolate_); + platform_->GetForegroundTaskRunner( + isolate_, v8::TaskPriority::kUserBlocking); task_runner->PostTask(std::make_unique( repost_count_, run_count_, isolate_, platform_)); } @@ -46,7 +47,8 @@ TEST_F(PlatformTest, SkipNewTasksInFlushForegroundTasks) { Env env {handle_scope, argv}; int run_count = 0; std::shared_ptr task_runner = - platform->GetForegroundTaskRunner(isolate_); + platform->GetForegroundTaskRunner( + isolate_, v8::TaskPriority::kUserBlocking); task_runner->PostTask( std::make_unique(2, &run_count, isolate_, platform.get())); EXPECT_TRUE(platform->FlushForegroundTasks(isolate_));