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

Side by Side Diff: build/android/symbolize_test.py

Issue 201853007: [Android] Linting the rest of build/android/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « build/android/surface_stats.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Unittest for symbolize.py. 7 """Unittest for symbolize.py.
8 8
9 This test uses test libraries generated by the Android g++ toolchain. 9 This test uses test libraries generated by the Android g++ toolchain.
10 10
11 Should things break you can recreate the libraries and get the updated 11 Should things break you can recreate the libraries and get the updated
12 addresses and demangled names by running the following: 12 addresses and demangled names by running the following:
13 cd test/symbolize/ 13 cd test/symbolize/
14 make 14 make
15 nm -gC *.so 15 nm -gC *.so
16 """ 16 """
17 17
18 import sys
19 import StringIO 18 import StringIO
20 import unittest 19 import unittest
21 20
22 import symbolize 21 import symbolize
23 22
24 LIB_A_PATH = '/build/android/tests/symbolize/liba.so' 23 LIB_A_PATH = '/build/android/tests/symbolize/liba.so'
25 LIB_B_PATH = '/build/android/tests/symbolize/libb.so' 24 LIB_B_PATH = '/build/android/tests/symbolize/libb.so'
26 25
27 def RunSymbolizer(text): 26 def RunSymbolizer(text):
28 output = StringIO.StringIO() 27 output = StringIO.StringIO()
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 expected = 'TOP\n' 121 expected = 'TOP\n'
123 expected += 'LEFT #00 0x00000000 A::Bar(char const*) RIGHT\n' 122 expected += 'LEFT #00 0x00000000 A::Bar(char const*) RIGHT\n'
124 expected += 'LEFT #01 0x00000000 B::Baz(float) RIGHT\n' 123 expected += 'LEFT #01 0x00000000 B::Baz(float) RIGHT\n'
125 expected += 'BOTTOM\n' 124 expected += 'BOTTOM\n'
126 actual = RunSymbolizer(text) 125 actual = RunSymbolizer(text)
127 self.assertEqual(expected, actual) 126 self.assertEqual(expected, actual)
128 127
129 128
130 if __name__ == '__main__': 129 if __name__ == '__main__':
131 unittest.main() 130 unittest.main()
OLDNEW
« no previous file with comments | « build/android/surface_stats.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698