| Index: tracing/bin/symbolize_trace_macho_reader_unittest.py
|
| diff --git a/tracing/bin/symbolize_trace_macho_reader_unittest.py b/tracing/bin/symbolize_trace_macho_reader_unittest.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..824672ebf7a67581339452a7bc751337ac2b3b6e
|
| --- /dev/null
|
| +++ b/tracing/bin/symbolize_trace_macho_reader_unittest.py
|
| @@ -0,0 +1,28 @@
|
| +#!/usr/bin/env python
|
| +# Copyright 2017 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import os
|
| +import sys
|
| +import unittest
|
| +
|
| +sys.path.insert(0, os.path.dirname(__file__))
|
| +import symbolize_trace_macho_reader
|
| +
|
| +
|
| +class AtosRegexTest(unittest.TestCase):
|
| + def testRegex(self):
|
| + if sys.platform != "darwin":
|
| + return
|
| + file_name = "/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit"
|
| + result = symbolize_trace_macho_reader.ReadMachOTextLoadAddress(file_name)
|
| + self.assertNotEqual(None, result)
|
| +
|
| + file_name = "/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa"
|
| + result = symbolize_trace_macho_reader.ReadMachOTextLoadAddress(file_name)
|
| + self.assertNotEqual(None, result)
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + unittest.main()
|
|
|