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

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

Issue 2754673002: [scheduler] Split suspendable tq from unthrottled tq. (Closed)
Patch Set: For the moment make only database access tasks suspendable 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/web_frame_scheduler_impl.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/web_frame_scheduler_impl_unittest.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc
index 318e67b5ddc0d34b7ed3acd95539a184023d3120..0e47cbdf857371c02072e1e34bd9fcc1dbe0507e 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc
@@ -207,6 +207,8 @@ TEST_F(WebFrameSchedulerImplTest, SuspendAndResume) {
BLINK_FROM_HERE, WTF::bind(&IncrementCounter, WTF::unretained(&counter)));
web_frame_scheduler_->unthrottledTaskRunner()->postTask(
BLINK_FROM_HERE, WTF::bind(&IncrementCounter, WTF::unretained(&counter)));
+ web_frame_scheduler_->suspendableTaskRunner()->postTask(
+ BLINK_FROM_HERE, WTF::bind(&IncrementCounter, WTF::unretained(&counter)));
web_frame_scheduler_->setSuspended(true);
@@ -218,7 +220,7 @@ TEST_F(WebFrameSchedulerImplTest, SuspendAndResume) {
EXPECT_EQ(1, counter);
mock_task_runner_->RunUntilIdle();
- EXPECT_EQ(3, counter);
+ EXPECT_EQ(4, counter);
}
} // namespace scheduler
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698