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

Unified Diff: components/scheduler/base/task_queue_selector_unittest.cc

Issue 1441073006: Move throttling of background timers into the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last few changes Sami requested Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/scheduler/base/task_queue_selector_unittest.cc
diff --git a/components/scheduler/base/task_queue_selector_unittest.cc b/components/scheduler/base/task_queue_selector_unittest.cc
index 382a440d54fd343dd84776d00c41c28e39935a8d..da64fac3ba1767dc76260644c72630bde9e0a04f 100644
--- a/components/scheduler/base/task_queue_selector_unittest.cc
+++ b/components/scheduler/base/task_queue_selector_unittest.cc
@@ -75,11 +75,11 @@ class TaskQueueSelectorTest : public testing::Test {
protected:
void SetUp() final {
- virtual_time_domain_ = make_scoped_refptr<VirtualTimeDomain>(
- new VirtualTimeDomain(base::TimeTicks()));
+ virtual_time_domain_ = make_scoped_ptr<VirtualTimeDomain>(
+ new VirtualTimeDomain(nullptr, base::TimeTicks()));
for (size_t i = 0; i < kTaskQueueCount; i++) {
scoped_refptr<TaskQueueImpl> task_queue = make_scoped_refptr(
- new TaskQueueImpl(nullptr, virtual_time_domain_,
+ new TaskQueueImpl(nullptr, virtual_time_domain_.get(),
TaskQueue::Spec("test queue"), "test", "test"));
selector_.AddQueue(task_queue.get());
task_queues_.push_back(task_queue);
@@ -93,7 +93,7 @@ class TaskQueueSelectorTest : public testing::Test {
const size_t kTaskQueueCount = 5;
base::Closure test_closure_;
TaskQueueSelector selector_;
- scoped_refptr<VirtualTimeDomain> virtual_time_domain_;
+ scoped_ptr<VirtualTimeDomain> virtual_time_domain_;
std::vector<scoped_refptr<TaskQueueImpl>> task_queues_;
std::map<TaskQueueImpl*, size_t> queue_to_index_map_;
};
« no previous file with comments | « components/scheduler/base/task_queue_manager_unittest.cc ('k') | components/scheduler/base/task_queue_sets_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698