OLD | NEW |
---|---|
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 common.blame import Region | 5 from lib.gitiles.blame import Region |
6 from common.blame import Blame | 6 from lib.gitiles.blame import Blame |
7 from common.change_log import ChangeLog | 7 from lib.gitiles.change_log import ChangeLog |
stgao
2016/10/28 18:20:59
order of import.
wrengr
2016/10/28 19:24:48
Done.
| |
8 from crash.stacktrace import StackFrame | 8 from crash.stacktrace import StackFrame |
9 from crash.results import AnalysisInfo | 9 from crash.results import AnalysisInfo |
10 from crash.results import Result | 10 from crash.results import Result |
11 from crash.results import MatchResult | 11 from crash.results import MatchResult |
12 from crash.results import MatchResults | 12 from crash.results import MatchResults |
13 from crash.test.crash_test_suite import CrashTestSuite | 13 from crash.test.crash_test_suite import CrashTestSuite |
14 | 14 |
15 DUMMY_CHANGELOG1 = ChangeLog.FromDict({ | 15 DUMMY_CHANGELOG1 = ChangeLog.FromDict({ |
16 'author_name': 'r@chromium.org', | 16 'author_name': 'r@chromium.org', |
17 'message': 'dummy', | 17 'message': 'dummy', |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 } | 180 } |
181 expected_match_result.file_to_analysis_info = { | 181 expected_match_result.file_to_analysis_info = { |
182 'a.cc': AnalysisInfo(min_distance = 0, min_distance_frame = frame1), | 182 'a.cc': AnalysisInfo(min_distance = 0, min_distance_frame = frame1), |
183 'b.cc': AnalysisInfo(min_distance = 3, min_distance_frame = frame2), | 183 'b.cc': AnalysisInfo(min_distance = 3, min_distance_frame = frame2), |
184 } | 184 } |
185 | 185 |
186 expected_match_results = MatchResults(ignore_cls=set(['2'])) | 186 expected_match_results = MatchResults(ignore_cls=set(['2'])) |
187 expected_match_results['1'] = expected_match_result | 187 expected_match_results['1'] = expected_match_result |
188 | 188 |
189 self._VerifyTwoMatchResultsEqual(match_results, expected_match_results) | 189 self._VerifyTwoMatchResultsEqual(match_results, expected_match_results) |
OLD | NEW |