OLD | NEW |
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 "base/test/simple_test_tick_clock.h" | 5 #include "base/test/simple_test_tick_clock.h" |
6 #include "components/scheduler/child/test_time_source.h" | 6 #include "components/scheduler/base/test_time_source.h" |
7 #include "components/scheduler/renderer/task_cost_estimator.h" | 7 #include "components/scheduler/renderer/task_cost_estimator.h" |
8 | 8 |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace scheduler { | 12 namespace scheduler { |
13 | 13 |
14 class TaskCostEstimatorTest : public testing::Test { | 14 class TaskCostEstimatorTest : public testing::Test { |
15 public: | 15 public: |
16 TaskCostEstimatorTest() {} | 16 TaskCostEstimatorTest() {} |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 clock_.Advance(base::TimeDelta::FromMilliseconds(500)); | 66 clock_.Advance(base::TimeDelta::FromMilliseconds(500)); |
67 estimator.DidProcessTask(task); | 67 estimator.DidProcessTask(task); |
68 clock_.Advance(base::TimeDelta::FromMilliseconds(500)); | 68 clock_.Advance(base::TimeDelta::FromMilliseconds(500)); |
69 estimator.DidProcessTask(task); | 69 estimator.DidProcessTask(task); |
70 | 70 |
71 EXPECT_EQ(base::TimeDelta::FromMilliseconds(1000), | 71 EXPECT_EQ(base::TimeDelta::FromMilliseconds(1000), |
72 estimator.expected_task_duration()); | 72 estimator.expected_task_duration()); |
73 } | 73 } |
74 | 74 |
75 } // namespace scheduler | 75 } // namespace scheduler |
OLD | NEW |