1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 from memory_inspector.core import stacktrace
10 class StacktraceTest(unittest.TestCase):
12 st = stacktrace.Stacktrace()
13 frame_1 = stacktrace.Frame(20)
14 frame_2 = stacktrace.Frame(24)
15 frame_2.SetExecFileInfo('/foo/bar.so', 0)
16 self.assertEqual(frame_2.exec_file_name, 'bar.so')
21 self.assertEqual(st.depth, 4)