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

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

Issue 1374653003: scheduler: Add a base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gn clobber build. Created 5 years, 2 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/lazy_now.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/base/task_queue.h"
11 #include "components/scheduler/base/task_queue_manager.h"
12 #include "components/scheduler/base/test_time_source.h"
10 #include "components/scheduler/child/scheduler_helper.h" 13 #include "components/scheduler/child/scheduler_helper.h"
11 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h" 14 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h"
12 #include "components/scheduler/child/scheduler_task_runner_delegate_impl.h" 15 #include "components/scheduler/child/scheduler_task_runner_delegate_impl.h"
13 #include "components/scheduler/child/task_queue.h"
14 #include "components/scheduler/child/task_queue_manager.h"
15 #include "components/scheduler/child/test_time_source.h"
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using testing::_; 19 using testing::_;
20 using testing::AnyNumber; 20 using testing::AnyNumber;
21 using testing::AtLeast; 21 using testing::AtLeast;
22 using testing::Exactly; 22 using testing::Exactly;
23 using testing::Invoke; 23 using testing::Invoke;
24 using testing::Return; 24 using testing::Return;
25 25
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 EXPECT_EQ(0, run_count); 1135 EXPECT_EQ(0, run_count);
1136 1136
1137 default_task_runner_->PostDelayedTask(FROM_HERE, base::Bind(&NullTask), 1137 default_task_runner_->PostDelayedTask(FROM_HERE, base::Bind(&NullTask),
1138 more_than_min_deadline_duration); 1138 more_than_min_deadline_duration);
1139 idle_helper_->EnableLongIdlePeriod(); 1139 idle_helper_->EnableLongIdlePeriod();
1140 RunUntilIdle(); 1140 RunUntilIdle();
1141 EXPECT_EQ(1, run_count); 1141 EXPECT_EQ(1, run_count);
1142 } 1142 }
1143 1143
1144 } // namespace scheduler 1144 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/idle_helper.cc ('k') | components/scheduler/child/lazy_now.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698