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

Side by Side Diff: components/scheduler/child/idle_helper_unittest.cc

Issue 1223163006: Implement PostDelayedTaskAt for guaranteed timer ordering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing include to IdleHelperTest. Created 5 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
« no previous file with comments | « components/scheduler/child/idle_helper.cc ('k') | components/scheduler/child/null_task_queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/scheduler/child/idle_helper.h" 5 #include "components/scheduler/child/idle_helper.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
9 #include "cc/test/ordered_simple_task_runner.h" 9 #include "cc/test/ordered_simple_task_runner.h"
10 #include "components/scheduler/child/nestable_task_runner_for_test.h" 10 #include "components/scheduler/child/nestable_task_runner_for_test.h"
11 #include "components/scheduler/child/scheduler_helper.h" 11 #include "components/scheduler/child/scheduler_helper.h"
12 #include "components/scheduler/child/scheduler_message_loop_delegate.h" 12 #include "components/scheduler/child/scheduler_message_loop_delegate.h"
13 #include "components/scheduler/child/task_queue.h"
13 #include "components/scheduler/child/task_queue_manager.h" 14 #include "components/scheduler/child/task_queue_manager.h"
14 #include "components/scheduler/child/test_time_source.h" 15 #include "components/scheduler/child/test_time_source.h"
15 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 using testing::_; 19 using testing::_;
19 using testing::AnyNumber; 20 using testing::AnyNumber;
20 using testing::AtLeast; 21 using testing::AtLeast;
21 using testing::Exactly; 22 using testing::Exactly;
22 using testing::Invoke; 23 using testing::Invoke;
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 EXPECT_EQ(0, run_count); 1139 EXPECT_EQ(0, run_count);
1139 1140
1140 default_task_runner_->PostDelayedTask(FROM_HERE, base::Bind(&NullTask), 1141 default_task_runner_->PostDelayedTask(FROM_HERE, base::Bind(&NullTask),
1141 more_than_min_deadline_duration); 1142 more_than_min_deadline_duration);
1142 idle_helper_->EnableLongIdlePeriod(); 1143 idle_helper_->EnableLongIdlePeriod();
1143 RunUntilIdle(); 1144 RunUntilIdle();
1144 EXPECT_EQ(1, run_count); 1145 EXPECT_EQ(1, run_count);
1145 } 1146 }
1146 1147
1147 } // namespace scheduler 1148 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/idle_helper.cc ('k') | components/scheduler/child/null_task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698