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

Side by Side Diff: components/scheduler/base/time_domain_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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/base/test_time_source.h ('k') | components/scheduler/base/work_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/base/time_domain.h" 5 #include "components/scheduler/base/time_domain.h"
6 6
7 #include "base/macros.h"
7 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
8 #include "cc/test/ordered_simple_task_runner.h" 9 #include "cc/test/ordered_simple_task_runner.h"
9 #include "components/scheduler/base/task_queue_impl.h" 10 #include "components/scheduler/base/task_queue_impl.h"
10 #include "components/scheduler/base/task_queue_manager.h" 11 #include "components/scheduler/base/task_queue_manager.h"
11 #include "components/scheduler/base/task_queue_manager_delegate_for_test.h" 12 #include "components/scheduler/base/task_queue_manager_delegate_for_test.h"
12 #include "components/scheduler/base/test_time_source.h" 13 #include "components/scheduler/base/test_time_source.h"
13 #include "components/scheduler/base/work_queue.h" 14 #include "components/scheduler/base/work_queue.h"
14 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
15 16
16 using testing::_; 17 using testing::_;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 TEST_F(TimeDomainWithObserverTest, OnTimeDomainHasDelayedWork) { 211 TEST_F(TimeDomainWithObserverTest, OnTimeDomainHasDelayedWork) {
211 EXPECT_CALL(*observer_, OnTimeDomainHasDelayedWork()); 212 EXPECT_CALL(*observer_, OnTimeDomainHasDelayedWork());
212 EXPECT_CALL(*time_domain_.get(), RequestWakeup(_, _)); 213 EXPECT_CALL(*time_domain_.get(), RequestWakeup(_, _));
213 LazyNow lazy_now = time_domain_->CreateLazyNow(); 214 LazyNow lazy_now = time_domain_->CreateLazyNow();
214 time_domain_->ScheduleDelayedWork( 215 time_domain_->ScheduleDelayedWork(
215 task_queue_.get(), 216 task_queue_.get(),
216 time_domain_->Now() + base::TimeDelta::FromMilliseconds(10), &lazy_now); 217 time_domain_->Now() + base::TimeDelta::FromMilliseconds(10), &lazy_now);
217 } 218 }
218 219
219 } // namespace scheduler 220 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/base/test_time_source.h ('k') | components/scheduler/base/work_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698