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 authored and Facebook GitHub Bot committed 2022-01-26 09:23:08 -08:00
1 parent 9bf533e6b8
commit b856465e3a
2 files changed
+3 -2

No files matched your search

@@ -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 {