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

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

Issue 2552603002: Add tests for MemoryCoordinator::Can{Throttle,Suspend}Renderer() (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_browsertest.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 d6cf7df5ddf3f899a64970946c5b42fa9dc0fdd8..236d3b7ee3f9f6980860896804b552414e3941eb 100644
--- a/content/browser/memory/memory_coordinator_unittest.cc
+++ b/content/browser/memory/memory_coordinator_unittest.cc
@@ -93,9 +93,9 @@ class MemoryCoordinatorTest : public testing::Test {
TEST_F(MemoryCoordinatorTest, ChildRemovedOnConnectionError) {
TestMemoryCoordinator mc;
mc.CreateChildMemoryCoordinator(1);
- ASSERT_EQ(1u, mc.NumChildrenForTesting());
+ ASSERT_EQ(1u, mc.children().size());
mc.OnConnectionError(1);
- EXPECT_EQ(0u, mc.NumChildrenForTesting());
+ EXPECT_EQ(0u, mc.children().size());
}
TEST_F(MemoryCoordinatorTest, SetMemoryStateFailsInvalidState) {
« no previous file with comments | « content/browser/memory/memory_coordinator_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698