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

Side by Side Diff: tools/memory_inspector/tests/core_test.py

Issue 158993002: Add Android-backend to the memory_inspector (prerequisites). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update ps_ext prebuilt sha1 Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unittests for the core backends modules."""
7
6 import logging 8 import logging
7 import os 9 import os
8 import sys 10 import sys
9 import unittest 11 import unittest
10 12
11 sys.path.append(os.path.abspath(os.path.join(__file__, os.pardir, os.pardir))) 13 sys.path.append(os.path.abspath(os.path.join(__file__, os.pardir, os.pardir)))
12 14
13 from memory_inspector.core import backends 15 from memory_inspector.core import backends
14 from memory_inspector.core import memory_map 16 from memory_inspector.core import memory_map
15 from memory_inspector.core import stacktrace 17 from memory_inspector.core import stacktrace
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 st.Add(frame_2) 106 st.Add(frame_2)
105 st.Add(frame_1) 107 st.Add(frame_1)
106 self.assertEqual(st.depth, 4) 108 self.assertEqual(st.depth, 4)
107 109
108 110
109 if __name__ == '__main__': 111 if __name__ == '__main__':
110 logging.basicConfig( 112 logging.basicConfig(
111 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR, 113 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR,
112 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') 114 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s')
113 unittest.main() 115 unittest.main()
OLDNEW
« no previous file with comments | « tools/memory_inspector/tests/__init__.py ('k') | tools/memory_inspector/tests/mock_adb/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698