mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
9bf533e6b8
commit
b856465e3a
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user