// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "include/v8-platform.h" #include "src/libplatform/task-queue.h" #include "src/libplatform/worker-thread.h" #include "testing/gmock/include/gmock/gmock.h" InSequence; IsNull; StrictMock; namespace v8 { namespace platform { namespace { struct MockTask : public Task { … }; } // namespace // Needs to be in v8::platform due to BlockUntilQueueEmptyForTesting // being private. TEST(WorkerThreadTest, PostSingleTask) { … } namespace worker_thread_unittest { TEST(WorkerThreadTest, Basic) { … } } // namespace worker_thread_unittest } // namespace platform } // namespace v8