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

Side by Side Diff: tracing/bin/symbolize_trace_macho_reader_unittest.py

Issue 2698543003: Use absolute pcs and load locations to symbolize on macOS. (Closed)
Patch Set: comments from dskiba. Created 3 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
« no previous file with comments | « tracing/bin/symbolize_trace_macho_reader.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2017 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import sys
8 import unittest
9
10 sys.path.insert(0, os.path.dirname(__file__))
11 import symbolize_trace_macho_reader
12
13
14 class AtosRegexTest(unittest.TestCase):
15 def testRegex(self):
16 if sys.platform != "darwin":
17 return
18 file_name = "/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit"
19 result = symbolize_trace_macho_reader.ReadMachOTextLoadAddress(file_name)
20 self.assertNotEqual(None, result)
21
22 file_name = "/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa"
23 result = symbolize_trace_macho_reader.ReadMachOTextLoadAddress(file_name)
24 self.assertNotEqual(None, result)
25
26
27 if __name__ == '__main__':
28 unittest.main()
OLDNEW
« no previous file with comments | « tracing/bin/symbolize_trace_macho_reader.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698