#include "src/libplatform/default-worker-threads-task-runner.h"
#include <algorithm>
#include <vector>
#include "include/v8-platform.h"
#include "src/base/platform/platform.h"
#include "src/base/platform/semaphore.h"
#include "src/base/platform/time.h"
#include "testing/gtest-support.h"
namespace v8 {
namespace platform {
class TestTask : public v8::Task { … };
double RealTime() { … }
TEST(DefaultWorkerThreadsTaskRunnerUnittest, PostTaskOrder) { … }
TEST(DefaultWorkerThreadsTaskRunnerUnittest, PostTaskOrderMultipleWorkers) { … }
class FakeClock { … };
std::atomic<double> FakeClock::time_{ … };
TEST(DefaultWorkerThreadsTaskRunnerUnittest, PostDelayedTaskOrder) { … }
TEST(DefaultWorkerThreadsTaskRunnerUnittest, PostDelayedTaskOrder2) { … }
TEST(DefaultWorkerThreadsTaskRunnerUnittest, PostAfterTerminate) { … }
TEST(DefaultWorkerThreadsTaskRunnerUnittest, NoIdleTasks) { … }
}
}