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

Unified Diff: tools/linux/tests/procfs_tests.py

Issue 299753007: Make find_runtime_tools available for non-Chrome executables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« tools/linux/procfs.py ('K') | « tools/linux/procfs.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/linux/tests/procfs_tests.py
diff --git a/tools/linux/tests/procfs_tests.py b/tools/linux/tests/procfs_tests.py
index e1e837a59113d362ee8c0c4c2093914fda1954cf..c829199c6060bd9bbd8ba7a7e18eb11ee2925948 100755
--- a/tools/linux/tests/procfs_tests.py
+++ b/tools/linux/tests/procfs_tests.py
@@ -83,21 +83,21 @@ class ProcMapsTest(unittest.TestCase):
def test_constants(self):
maps = ProcMaps.load_file(cStringIO.StringIO(self._TEST_PROCMAPS))
- selected = [4, 7]
+ selected = [0, 2, 4, 7]
for index, entry in enumerate(maps.iter(ProcMaps.constants)):
self.assertEqual(entry.as_dict(),
self._expected_as_dict(selected[index]))
def test_executable(self):
maps = ProcMaps.load_file(cStringIO.StringIO(self._TEST_PROCMAPS))
- selected = [3, 6]
+ selected = [1, 3, 6, 9]
for index, entry in enumerate(maps.iter(ProcMaps.executable)):
self.assertEqual(entry.as_dict(),
self._expected_as_dict(selected[index]))
def test_executable_and_constants(self):
maps = ProcMaps.load_file(cStringIO.StringIO(self._TEST_PROCMAPS))
- selected = [3, 4, 6, 7]
+ selected = [0, 1, 2, 3, 4, 6, 7, 9]
for index, entry in enumerate(maps.iter(ProcMaps.executable_and_constants)):
self.assertEqual(entry.as_dict(),
self._expected_as_dict(selected[index]))
« tools/linux/procfs.py ('K') | « tools/linux/procfs.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698