Index: content/browser/memory/memory_coordinator_impl_browsertest.cc |
diff --git a/content/browser/memory/memory_coordinator_impl_browsertest.cc b/content/browser/memory/memory_coordinator_impl_browsertest.cc |
index 3b664ee9f99d616dea4339db7eb7a650cdaa2ec4..9403f8ef7e183ca72a50004936462404022a0696 100644 |
--- a/content/browser/memory/memory_coordinator_impl_browsertest.cc |
+++ b/content/browser/memory/memory_coordinator_impl_browsertest.cc |
@@ -64,6 +64,15 @@ IN_PROC_BROWSER_TEST_F(MemoryCoordinatorImplBrowserTest, CanSuspendRenderer) { |
EXPECT_FALSE(memory_coordinator->CanSuspendRenderer(render_process_id)); |
} |
+IN_PROC_BROWSER_TEST_F(MemoryCoordinatorImplBrowserTest, GetStateForProcess) { |
+ GURL url = GetTestUrl("", "simple_page.html"); |
+ NavigateToURL(shell(), url); |
+ auto* memory_coordinator = MemoryCoordinator::GetInstance(); |
+ base::ProcessHandle handle = base::GetCurrentProcessHandle(); |
+ EXPECT_NE(base::MemoryState::UNKNOWN, |
+ memory_coordinator->GetStateForProcess(handle)); |
+} |
+ |
#endif // !defined(OS_MACOSX) |
} // namespace content |