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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/bin/symbolize_trace_macho_reader.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« 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