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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/deadline_task_runner_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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scheduler/renderer/deadline_task_runner_unittest.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/deadline_task_runner_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/deadline_task_runner_unittest.cc
index 635eb195192dbab7d10ebe4be279bfaf17313599..64c47bde63dbc85d47be46fff18bdf13b9c75cab 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/deadline_task_runner_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/deadline_task_runner_unittest.cc
@@ -14,7 +14,7 @@
namespace blink {
namespace scheduler {
-class DeadlineTaskRunnerTest : public testing::Test {
+class DeadlineTaskRunnerTest : public ::testing::Test {
public:
DeadlineTaskRunnerTest() {}
~DeadlineTaskRunnerTest() override {}
@@ -45,7 +45,7 @@ TEST_F(DeadlineTaskRunnerTest, RunOnce) {
deadline_task_runner_->SetDeadline(FROM_HERE, delay, clock_->NowTicks());
RunUntilIdle();
- EXPECT_THAT(run_times_, testing::ElementsAre(start_time + delay));
+ EXPECT_THAT(run_times_, ::testing::ElementsAre(start_time + delay));
};
TEST_F(DeadlineTaskRunnerTest, RunTwice) {
@@ -59,7 +59,7 @@ TEST_F(DeadlineTaskRunnerTest, RunTwice) {
deadline_task_runner_->SetDeadline(FROM_HERE, delay2, clock_->NowTicks());
RunUntilIdle();
- EXPECT_THAT(run_times_, testing::ElementsAre(deadline1, deadline2));
+ EXPECT_THAT(run_times_, ::testing::ElementsAre(deadline1, deadline2));
};
TEST_F(DeadlineTaskRunnerTest, EarlierDeadlinesTakePrecidence) {
@@ -73,7 +73,7 @@ TEST_F(DeadlineTaskRunnerTest, EarlierDeadlinesTakePrecidence) {
RunUntilIdle();
- EXPECT_THAT(run_times_, testing::ElementsAre(start_time + delay1));
+ EXPECT_THAT(run_times_, ::testing::ElementsAre(start_time + delay1));
};
TEST_F(DeadlineTaskRunnerTest, LaterDeadlinesIgnored) {
@@ -85,7 +85,7 @@ TEST_F(DeadlineTaskRunnerTest, LaterDeadlinesIgnored) {
RunUntilIdle();
- EXPECT_THAT(run_times_, testing::ElementsAre(start_time + delay100));
+ EXPECT_THAT(run_times_, ::testing::ElementsAre(start_time + delay100));
};
TEST_F(DeadlineTaskRunnerTest, DeleteDeadlineTaskRunnerAfterPosting) {

Powered by Google App Engine
This is Rietveld 408576698