Lines Matching refs:platform
5 #include "src/libplatform/default-platform.h"
12 namespace platform {
42 DefaultPlatform platform;
43 EXPECT_FALSE(platform.PumpMessageLoop(isolate));
46 platform.CallOnForegroundThread(isolate, task);
49 EXPECT_TRUE(platform.PumpMessageLoop(isolate));
50 EXPECT_FALSE(platform.PumpMessageLoop(isolate));
60 DefaultPlatformWithMockTime platform;
61 EXPECT_FALSE(platform.PumpMessageLoop(isolate));
65 platform.CallDelayedOnForegroundThread(isolate, task2, 100);
66 platform.CallDelayedOnForegroundThread(isolate, task1, 10);
68 EXPECT_FALSE(platform.PumpMessageLoop(isolate));
70 platform.IncreaseTime(11);
73 EXPECT_TRUE(platform.PumpMessageLoop(isolate));
75 EXPECT_FALSE(platform.PumpMessageLoop(isolate));
77 platform.IncreaseTime(90);
80 EXPECT_TRUE(platform.PumpMessageLoop(isolate));
90 DefaultPlatformWithMockTime platform;
91 EXPECT_FALSE(platform.PumpMessageLoop(isolate));
96 platform.CallOnForegroundThread(isolate, task1);
97 platform.CallDelayedOnForegroundThread(isolate, task2, 10);
98 platform.IncreaseTime(11);
102 EXPECT_TRUE(platform.PumpMessageLoop(isolate));
104 platform.CallOnForegroundThread(isolate, task3);
108 EXPECT_TRUE(platform.PumpMessageLoop(isolate));
111 EXPECT_TRUE(platform.PumpMessageLoop(isolate));
122 DefaultPlatformWithMockTime platform;
124 platform.CallDelayedOnForegroundThread(isolate, task, 10);
130 } // namespace platform