| 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/child/task_queue_selector.h" | 5 #include "components/scheduler/base/task_queue_selector.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/pending_task.h" | 9 #include "base/pending_task.h" |
| 10 #include "components/scheduler/child/task_queue_impl.h" | 10 #include "components/scheduler/base/task_queue_impl.h" |
| 11 #include "components/scheduler/child/task_queue_sets.h" | 11 #include "components/scheduler/base/task_queue_sets.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using testing::_; | 15 using testing::_; |
| 16 | 16 |
| 17 namespace scheduler { | 17 namespace scheduler { |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| 20 class MockObserver : public TaskQueueSelector::Observer { | 20 class MockObserver : public TaskQueueSelector::Observer { |
| 21 public: | 21 public: |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 size_t queue_order[] = {0, 1}; | 274 size_t queue_order[] = {0, 1}; |
| 275 PushTasks(tasks, queue_order); | 275 PushTasks(tasks, queue_order); |
| 276 | 276 |
| 277 EXPECT_FALSE(selector_.EnabledWorkQueuesEmpty()); | 277 EXPECT_FALSE(selector_.EnabledWorkQueuesEmpty()); |
| 278 PopTasks(); | 278 PopTasks(); |
| 279 EXPECT_TRUE(selector_.EnabledWorkQueuesEmpty()); | 279 EXPECT_TRUE(selector_.EnabledWorkQueuesEmpty()); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace internal | 282 } // namespace internal |
| 283 } // namespace scheduler | 283 } // namespace scheduler |
| OLD | NEW |