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

Side by Side Diff: components/scheduler/renderer/task_cost_estimator_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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698