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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/renderer/task_cost_estimator_unittest.cc

Issue 2967013002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Dropped mojo parts that need another review. Created 3 years, 5 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 "platform/scheduler/renderer/task_cost_estimator.h" 5 #include "platform/scheduler/renderer/task_cost_estimator.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/test/simple_test_tick_clock.h" 9 #include "base/test/simple_test_tick_clock.h"
10 #include "platform/scheduler/base/test_time_source.h" 10 #include "platform/scheduler/base/test_time_source.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace blink { 14 namespace blink {
15 namespace scheduler { 15 namespace scheduler {
16 16
17 class TaskCostEstimatorTest : public testing::Test { 17 class TaskCostEstimatorTest : public ::testing::Test {
18 public: 18 public:
19 TaskCostEstimatorTest() {} 19 TaskCostEstimatorTest() {}
20 ~TaskCostEstimatorTest() override {} 20 ~TaskCostEstimatorTest() override {}
21 21
22 void SetUp() override { 22 void SetUp() override {
23 test_time_source_.reset(new TestTimeSource(&clock_)); 23 test_time_source_.reset(new TestTimeSource(&clock_));
24 } 24 }
25 25
26 base::SimpleTestTickClock clock_; 26 base::SimpleTestTickClock clock_;
27 std::unique_ptr<TestTimeSource> test_time_source_; 27 std::unique_ptr<TestTimeSource> test_time_source_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 estimator.DidProcessTask(task); 73 estimator.DidProcessTask(task);
74 clock_.Advance(base::TimeDelta::FromMilliseconds(500)); 74 clock_.Advance(base::TimeDelta::FromMilliseconds(500));
75 estimator.DidProcessTask(task); 75 estimator.DidProcessTask(task);
76 76
77 EXPECT_EQ(base::TimeDelta::FromMilliseconds(1000), 77 EXPECT_EQ(base::TimeDelta::FromMilliseconds(1000),
78 estimator.expected_task_duration()); 78 estimator.expected_task_duration());
79 } 79 }
80 80
81 } // namespace scheduler 81 } // namespace scheduler
82 } // namespace blink 82 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698