Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/work_queue_unittest.cc

Issue 2967013002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Dropped mojo parts that need another review. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/scheduler/base/work_queue.h" 5 #include "platform/scheduler/base/work_queue.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "platform/scheduler/base/real_time_domain.h" 11 #include "platform/scheduler/base/real_time_domain.h"
12 #include "platform/scheduler/base/task_queue_impl.h" 12 #include "platform/scheduler/base/task_queue_impl.h"
13 #include "platform/scheduler/base/work_queue_sets.h" 13 #include "platform/scheduler/base/work_queue_sets.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 15
16 namespace blink { 16 namespace blink {
17 namespace scheduler { 17 namespace scheduler {
18 namespace internal { 18 namespace internal {
19 namespace { 19 namespace {
20 void NopTask() {} 20 void NopTask() {}
21 } 21 }
22 22
23 class WorkQueueTest : public testing::Test { 23 class WorkQueueTest : public ::testing::Test {
24 public: 24 public:
25 void SetUp() override { 25 void SetUp() override {
26 time_domain_.reset(new RealTimeDomain()); 26 time_domain_.reset(new RealTimeDomain());
27 task_queue_ = make_scoped_refptr( 27 task_queue_ = make_scoped_refptr(
28 new TaskQueueImpl(nullptr, time_domain_.get(), 28 new TaskQueueImpl(nullptr, time_domain_.get(),
29 TaskQueue::Spec(TaskQueue::QueueType::TEST))); 29 TaskQueue::Spec(TaskQueue::QueueType::TEST)));
30 30
31 work_queue_.reset(new WorkQueue(task_queue_.get(), "test", 31 work_queue_.reset(new WorkQueue(task_queue_.get(), "test",
32 WorkQueue::QueueType::IMMEDIATE)); 32 WorkQueue::QueueType::IMMEDIATE));
33 work_queue_sets_.reset(new WorkQueueSets(1, "test")); 33 work_queue_sets_.reset(new WorkQueueSets(1, "test"));
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 EXPECT_FALSE(work_queue_->InsertFence(1)); 365 EXPECT_FALSE(work_queue_->InsertFence(1));
366 EXPECT_TRUE(work_queue_->BlockedByFence()); 366 EXPECT_TRUE(work_queue_->BlockedByFence());
367 367
368 EnqueueOrder enqueue_order; 368 EnqueueOrder enqueue_order;
369 EXPECT_FALSE(work_queue_->GetFrontTaskEnqueueOrder(&enqueue_order)); 369 EXPECT_FALSE(work_queue_->GetFrontTaskEnqueueOrder(&enqueue_order));
370 } 370 }
371 371
372 } // namespace internal 372 } // namespace internal
373 } // namespace scheduler 373 } // namespace scheduler
374 } // namespace blink 374 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698