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

Side by Side Diff: components/scheduler/child/worker_scheduler_impl_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/worker_scheduler_impl.cc ('k') | components/scheduler/ppapi/DEPS » ('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/worker_scheduler_impl.h" 5 #include "components/scheduler/child/worker_scheduler_impl.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/test/simple_test_tick_clock.h" 9 #include "base/test/simple_test_tick_clock.h"
10 #include "cc/test/ordered_simple_task_runner.h" 10 #include "cc/test/ordered_simple_task_runner.h"
11 #include "components/scheduler/base/test_time_source.h"
11 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h" 12 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h"
12 #include "components/scheduler/child/test_time_source.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using testing::ElementsAreArray; 16 using testing::ElementsAreArray;
17 17
18 namespace scheduler { 18 namespace scheduler {
19 19
20 namespace { 20 namespace {
21 void NopTask() { 21 void NopTask() {
22 } 22 }
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 "run RecordTimelineTask @ 55", 379 "run RecordTimelineTask @ 55",
380 "IsNotQuiescent @ 55", // NOTE we have to wait for quiescence. 380 "IsNotQuiescent @ 55", // NOTE we have to wait for quiescence.
381 "CanEnterLongIdlePeriod @ 355", 381 "CanEnterLongIdlePeriod @ 355",
382 "run TimelineIdleTestTask deadline 405", 382 "run TimelineIdleTestTask deadline 405",
383 "RunUntilIdle end @ 355"}; 383 "RunUntilIdle end @ 355"};
384 384
385 EXPECT_THAT(timeline, ElementsAreArray(expected_timeline)); 385 EXPECT_THAT(timeline, ElementsAreArray(expected_timeline));
386 } 386 }
387 387
388 } // namespace scheduler 388 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/worker_scheduler_impl.cc ('k') | components/scheduler/ppapi/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698