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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc

Issue 2840873002: [scheduler] Rename member variables from task_runner_ to task_queue_. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc
index 1814fbc11b6df73dcc1a8097b6e4b9ba3ec370a8..0c9df833c38427b6daa34fb6f9658803fa92e909 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc
@@ -271,14 +271,14 @@ TEST_F(TaskQueueThrottlerTest,
ThrotlingAnEmptyQueueDoesNotPostPumpThrottledTasksLocked) {
task_queue_throttler_->IncreaseThrottleRefCount(timer_queue_.get());
- EXPECT_TRUE(task_queue_throttler_->task_runner()->IsEmpty());
+ EXPECT_TRUE(task_queue_throttler_->task_queue()->IsEmpty());
}
TEST_F(TaskQueueThrottlerTest, OnTimeDomainHasImmediateWork_EnabledQueue) {
task_queue_throttler_->OnQueueNextWakeUpChanged(timer_queue_.get(),
base::TimeTicks());
// Check PostPumpThrottledTasksLocked was called.
- EXPECT_FALSE(task_queue_throttler_->task_runner()->IsEmpty());
+ EXPECT_FALSE(task_queue_throttler_->task_queue()->IsEmpty());
}
TEST_F(TaskQueueThrottlerTest, OnTimeDomainHasImmediateWork_DisabledQueue) {
@@ -289,7 +289,7 @@ TEST_F(TaskQueueThrottlerTest, OnTimeDomainHasImmediateWork_DisabledQueue) {
task_queue_throttler_->OnQueueNextWakeUpChanged(timer_queue_.get(),
base::TimeTicks());
// Check PostPumpThrottledTasksLocked was not called.
- EXPECT_TRUE(task_queue_throttler_->task_runner()->IsEmpty());
+ EXPECT_TRUE(task_queue_throttler_->task_queue()->IsEmpty());
}
TEST_F(TaskQueueThrottlerTest,
@@ -301,11 +301,11 @@ TEST_F(TaskQueueThrottlerTest,
voter->SetQueueEnabled(false);
task_queue_throttler_->IncreaseThrottleRefCount(timer_queue_.get());
- EXPECT_TRUE(task_queue_throttler_->task_runner()->IsEmpty());
+ EXPECT_TRUE(task_queue_throttler_->task_queue()->IsEmpty());
// Enabling it should trigger a call to PostPumpThrottledTasksLocked.
voter->SetQueueEnabled(true);
- EXPECT_FALSE(task_queue_throttler_->task_runner()->IsEmpty());
+ EXPECT_FALSE(task_queue_throttler_->task_queue()->IsEmpty());
}
TEST_F(TaskQueueThrottlerTest,
@@ -318,11 +318,11 @@ TEST_F(TaskQueueThrottlerTest,
voter->SetQueueEnabled(false);
task_queue_throttler_->IncreaseThrottleRefCount(timer_queue_.get());
- EXPECT_TRUE(task_queue_throttler_->task_runner()->IsEmpty());
+ EXPECT_TRUE(task_queue_throttler_->task_queue()->IsEmpty());
// Enabling it should trigger a call to PostPumpThrottledTasksLocked.
voter->SetQueueEnabled(true);
- EXPECT_FALSE(task_queue_throttler_->task_runner()->IsEmpty());
+ EXPECT_FALSE(task_queue_throttler_->task_queue()->IsEmpty());
}
TEST_F(TaskQueueThrottlerTest, WakeUpForNonDelayedTask) {
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698