Chromium Code Reviews

Unified Diff: chrome/browser/process_info_snapshot_mac_unittest.cc

Issue 6052005: Proposal: Use /usr/bin/top in about:memory... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/process_info_snapshot_mac_unittest.cc
===================================================================
--- chrome/browser/process_info_snapshot_mac_unittest.cc (revision 70073)
+++ chrome/browser/process_info_snapshot_mac_unittest.cc (working copy)
@@ -77,6 +77,8 @@
// should occupy at least 100 kilobytes.
EXPECT_GE(proc_info.vsize, 1024u); // Sanity check: our |vsize| is presumably
// at least a megabyte.
+ EXPECT_GE(proc_info.rshrd, 1024u); // Shared memory should also > 1 MB.
+ EXPECT_GE(proc_info.rprvt, 1024u); // Same with private memory.
// Find our parent.
ASSERT_TRUE(snapshot.GetProcInfo(ppid, &proc_info));

Powered by Google App Engine