28 #ifndef TEST_LIBPLATFORM_H_
29 #define TEST_LIBPLATFORM_H_
35 using namespace v8::internal;
43 LockGuard<Mutex> guard(&lock_);
48 LockGuard<Mutex> guard(&lock_);
53 LockGuard<Mutex> guard(&lock_);
68 : task_counter_(task_counter),
69 expected_to_run_(expected_to_run),
75 : task_counter_(task_counter), expected_to_run_(
false), executed_(
false) {
80 CHECK_EQ(expected_to_run_, executed_);
89 bool expected_to_run_;
99 :
Thread(
"libplatform TestWorkerThread"), semaphore_(0), task_(task) {}
114 Semaphore semaphore_;
120 #endif // TEST_LIBPLATFORM_H_
TestWorkerThread(v8::Task *task)
#define CHECK_EQ(expected, value)
TestTask(TaskCounter *task_counter)
virtual ~TestWorkerThread()
virtual void Run() V8_OVERRIDE
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
TestTask(TaskCounter *task_counter, bool expected_to_run)
virtual void Run() V8_OVERRIDE