OLD | NEW |
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 "components/scheduler/base/work_queue_sets.h" | 5 #include "components/scheduler/base/work_queue_sets.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "components/scheduler/base/work_queue.h" | 9 #include "components/scheduler/base/work_queue.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
9 | 11 |
10 namespace scheduler { | 12 namespace scheduler { |
11 class TimeDomain; | 13 class TimeDomain; |
12 | 14 |
13 namespace internal { | 15 namespace internal { |
14 | 16 |
15 class WorkQueueSetsTest : public testing::Test { | 17 class WorkQueueSetsTest : public testing::Test { |
16 public: | 18 public: |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 work_queue_sets_->AssignQueueToSet(work_queue, set); | 239 work_queue_sets_->AssignQueueToSet(work_queue, set); |
238 EXPECT_FALSE(work_queue_sets_->IsSetEmpty(set)); | 240 EXPECT_FALSE(work_queue_sets_->IsSetEmpty(set)); |
239 | 241 |
240 work_queue->PopTaskForTest(); | 242 work_queue->PopTaskForTest(); |
241 work_queue_sets_->OnPopQueue(work_queue); | 243 work_queue_sets_->OnPopQueue(work_queue); |
242 EXPECT_TRUE(work_queue_sets_->IsSetEmpty(set)); | 244 EXPECT_TRUE(work_queue_sets_->IsSetEmpty(set)); |
243 } | 245 } |
244 | 246 |
245 } // namespace internal | 247 } // namespace internal |
246 } // namespace scheduler | 248 } // namespace scheduler |
OLD | NEW |