Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Pierre-doray committed Aug 30, 2024
1 parent af26a32 commit a4af3ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cctest/test_platform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class RepostingTask : public v8::Task {
--repost_count_;
std::shared_ptr<v8::TaskRunner> task_runner =
platform_->GetForegroundTaskRunner(
isolate_,
v8::TaskPriority::kUserBlocking);
isolate_, v8::TaskPriority::kUserBlocking);
task_runner->PostTask(std::make_unique<RepostingTask>(
repost_count_, run_count_, isolate_, platform_));
}
Expand All @@ -48,7 +47,8 @@ TEST_F(PlatformTest, SkipNewTasksInFlushForegroundTasks) {
Env env {handle_scope, argv};
int run_count = 0;
std::shared_ptr<v8::TaskRunner> task_runner =
platform->GetForegroundTaskRunner(isolate_, v8::TaskPriority::kUserBlocking);
platform->GetForegroundTaskRunner(
isolate_, v8::TaskPriority::kUserBlocking);
task_runner->PostTask(
std::make_unique<RepostingTask>(2, &run_count, isolate_, platform.get()));
EXPECT_TRUE(platform->FlushForegroundTasks(isolate_));
Expand Down

0 comments on commit a4af3ae

Please sign in to comment.