OLD | NEW |
(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() |
OLD | NEW |