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

Side by Side Diff: appengine/findit/crash/test/stacktrace_test.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: rebase-update Created 4 years, 3 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from crash.callstack import CallStack 5 from crash.callstack import CallStack, StackFrame
6 from crash.callstack import StackFrame
7 from crash.stacktrace import Stacktrace 6 from crash.stacktrace import Stacktrace
8 7
9 from crash.test.stacktrace_test_suite import StacktraceTestSuite 8 from crash.test.stacktrace_test_suite import StacktraceTestSuite
10 9
11 10
12 class StacktraceTest(StacktraceTestSuite): 11 class StacktraceTest(StacktraceTestSuite):
13 12
14 def testCrashStackForStacktraceWithoutSignature(self): 13 def testCrashStackForStacktraceWithoutSignature(self):
15 frame_list1 = [ 14 frame_list1 = [
16 StackFrame(0, 'src/', 'func', 'file0.cc', 'src/file0.cc', [32])] 15 StackFrame(0, 'src/', 'func', 'file0.cc', 'src/file0.cc', [32])]
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 stacktrace.extend(callstack_list) 71 stacktrace.extend(callstack_list)
73 72
74 self._VerifyTwoCallStacksEqual(stacktrace.crash_stack, 73 self._VerifyTwoCallStacksEqual(stacktrace.crash_stack,
75 callstack_list[0]) 74 callstack_list[0])
76 75
77 def testInitStacktaceByCopyAnother(self): 76 def testInitStacktaceByCopyAnother(self):
78 stack_trace = Stacktrace() 77 stack_trace = Stacktrace()
79 stack_trace.extend([CallStack(0), CallStack(1)]) 78 stack_trace.extend([CallStack(0), CallStack(1)])
80 79
81 self._VerifyTwoStacktracesEqual(Stacktrace(stack_trace), stack_trace) 80 self._VerifyTwoStacktracesEqual(Stacktrace(stack_trace), stack_trace)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698