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

Unified Diff: tools/memory_inspector/memory_inspector/backends/android/android_backend_unittest.py

Issue 358993003: [Android] Switch to DeviceUtils versions of file functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
Index: tools/memory_inspector/memory_inspector/backends/android/android_backend_unittest.py
diff --git a/tools/memory_inspector/memory_inspector/backends/android/android_backend_unittest.py b/tools/memory_inspector/memory_inspector/backends/android/android_backend_unittest.py
index 666cfb0c5a1cf4abd02626810f573e703467363e..37c8de0274f32babc1ae371ef5b93885b125ed21 100644
--- a/tools/memory_inspector/memory_inspector/backends/android/android_backend_unittest.py
+++ b/tools/memory_inspector/memory_inspector/backends/android/android_backend_unittest.py
@@ -39,7 +39,7 @@ be8b7000-be8d8000 rw-p 0 private_unevictable=8192 private=8192 shared_app=[] """
ffff0000-ffff1000 r-xp 0 private_unevictable=0 private=0 shared_app=[] """
"""shared_other_unevictable=0 shared_other=0 "[vectors]" [AA==]""")
-_MOCH_DUMPHEAP_OUT = """Android Native Heap Dump v1.0
+_MOCK_DUMPHEAP_OUT = """Android Native Heap Dump v1.0
Total memory: 1608601
Allocation records: 2
@@ -85,7 +85,8 @@ class AndroidBackendTest(unittest.TestCase):
'root': 'adbd is already running as root',
'shell /data/local/tmp/ps_ext': _MOCK_PS_EXT_OUT,
'shell /data/local/tmp/memdump': _MOCK_MEMDUMP_OUT,
- 'shell cat "/data/local/tmp/heap': _MOCH_DUMPHEAP_OUT,
+ 'shell cat "/data/local/tmp/heap': _MOCK_DUMPHEAP_OUT,
+ 'shell test -e "/data/local/tmp/heap': '0',
}
for (cmd, response) in planned_adb_responses.iteritems():
self._mock_adb.PrepareResponse(cmd, response)

Powered by Google App Engine
This is Rietveld 408576698