Add missing header and initialisation in RuntimeSchedulerTest

Summary: changelog: [internal]

Reviewed By: ShikaSD

Differential Revision: D33789519

fbshipit-source-id: 395c0cc7ddd1d63fbe57efb8f3212e5f5647e2bd
This commit is contained in:
Samuel Susla
2022-01-26 08:55:17 -08:00
committed by Facebook GitHub Bot
parent 9bf533e6b8
commit b856465e3a
2 changed files with 3 additions and 2 deletions
@@ -159,7 +159,7 @@ TEST_F(RuntimeSchedulerTest, taskExpiration) {
}
TEST_F(RuntimeSchedulerTest, scheduleTwoTasksWithSamePriority) {
uint firstTaskCallOrder;
uint firstTaskCallOrder = 0;
auto callbackOne =
createHostFunctionFromLambda([this, &firstTaskCallOrder](bool) {
firstTaskCallOrder = hostFunctionCallCount_;
@@ -192,7 +192,7 @@ TEST_F(RuntimeSchedulerTest, scheduleTwoTasksWithSamePriority) {
}
TEST_F(RuntimeSchedulerTest, scheduleTwoTasksWithDifferentPriorities) {
uint lowPriorityTaskCallOrder;
uint lowPriorityTaskCallOrder = 0;
auto callbackOne =
createHostFunctionFromLambda([this, &lowPriorityTaskCallOrder](bool) {
lowPriorityTaskCallOrder = hostFunctionCallCount_;
@@ -7,6 +7,7 @@
#pragma once
#include <condition_variable>
#include <queue>
class StubQueue {