8 #include "testing/gmock/include/gmock/gmock.h"
10 using testing::InSequence;
11 using testing::IsNull;
12 using testing::StrictMock;
27 : Thread(
Options(
"libplatform TaskQueueThread")), queue_(queue) {}
29 virtual void Run()
OVERRIDE { EXPECT_THAT(queue_->GetNext(), IsNull()); }
38 TEST(TaskQueueTest, Basic) {
42 EXPECT_EQ(&task, queue.
GetNext());
44 EXPECT_THAT(queue.
GetNext(), IsNull());
48 TEST(TaskQueueTest, TerminateMultipleReaders) {
50 TaskQueueThread thread1(&queue);
51 TaskQueueThread thread2(&queue);
A Task represents a unit of work.
Debugger support for the V8 JavaScript engine.