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

Unified Diff: content/browser/memory/memory_coordinator_unittest.cc

Issue 2553553002: memory coordinator: Throttle foreground renderers on SUSPENDED state (Closed)
Patch Set: Fix unittests Created 4 years 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 | « content/browser/memory/memory_coordinator_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_coordinator_unittest.cc
diff --git a/content/browser/memory/memory_coordinator_unittest.cc b/content/browser/memory/memory_coordinator_unittest.cc
index 236d3b7ee3f9f6980860896804b552414e3941eb..6b88b852da53299e3270a24e427271821b953ef4 100644
--- a/content/browser/memory/memory_coordinator_unittest.cc
+++ b/content/browser/memory/memory_coordinator_unittest.cc
@@ -133,7 +133,9 @@ TEST_F(MemoryCoordinatorTest, SetMemoryStateDelivered) {
EXPECT_TRUE(mc.SetChildMemoryState(2, mojom::MemoryState::SUSPENDED));
EXPECT_EQ(1, cmc2->on_state_change_calls());
- EXPECT_EQ(mojom::MemoryState::SUSPENDED, cmc2->state());
+ // Child processes are considered as visible (foreground) by default,
+ // and visible ones won't be suspended but throttled.
+ EXPECT_EQ(mojom::MemoryState::THROTTLED, cmc2->state());
}
} // namespace content
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698