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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/work_queue_sets_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_sets.h" 5 #include "platform/scheduler/base/work_queue_sets.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "platform/scheduler/base/work_queue.h" 10 #include "platform/scheduler/base/work_queue.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace blink { 13 namespace blink {
14 namespace scheduler { 14 namespace scheduler {
15 class TimeDomain; 15 class TimeDomain;
16 16
17 namespace internal { 17 namespace internal {
18 18
19 class WorkQueueSetsTest : public testing::Test { 19 class WorkQueueSetsTest : public ::testing::Test {
20 public: 20 public:
21 void SetUp() override { 21 void SetUp() override {
22 work_queue_sets_.reset(new WorkQueueSets(kNumSets, "test")); 22 work_queue_sets_.reset(new WorkQueueSets(kNumSets, "test"));
23 } 23 }
24 24
25 void TearDown() override { 25 void TearDown() override {
26 for (std::unique_ptr<WorkQueue>& work_queue : work_queues_) { 26 for (std::unique_ptr<WorkQueue>& work_queue : work_queues_) {
27 if (work_queue->work_queue_sets()) 27 if (work_queue->work_queue_sets())
28 work_queue_sets_->RemoveQueue(work_queue.get()); 28 work_queue_sets_->RemoveQueue(work_queue.get());
29 } 29 }
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 queue1->InsertFence(1); 289 queue1->InsertFence(1);
290 290
291 EXPECT_TRUE(work_queue_sets_->GetOldestQueueInSet(set, &selected_work_queue)); 291 EXPECT_TRUE(work_queue_sets_->GetOldestQueueInSet(set, &selected_work_queue));
292 EXPECT_EQ(selected_work_queue, queue2); 292 EXPECT_EQ(selected_work_queue, queue2);
293 } 293 }
294 294
295 } // namespace internal 295 } // namespace internal
296 } // namespace scheduler 296 } // namespace scheduler
297 } // namespace blink 297 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698