| 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 crash.results import AnalysisInfo | 5 from crash.results import AnalysisInfo |
| 6 from crash.results import MatchResult | 6 from crash.results import MatchResult |
| 7 from crash.results import MatchResults | 7 from crash.results import MatchResults |
| 8 from crash.results import Result | 8 from crash.results import Result |
| 9 from crash.results import StackInfo | 9 from crash.results import StackInfo |
| 10 from crash.stacktrace import StackFrame | 10 from crash.stacktrace import StackFrame |
| 11 from crash.test.crash_test_suite import CrashTestSuite | 11 from crash.test.crash_test_suite import CrashTestSuite |
| 12 from lib.gitiles.blame import Blame | 12 from libs.gitiles.blame import Blame |
| 13 from lib.gitiles.blame import Region | 13 from libs.gitiles.blame import Region |
| 14 from lib.gitiles.change_log import ChangeLog | 14 from libs.gitiles.change_log import ChangeLog |
| 15 | 15 |
| 16 DUMMY_CHANGELOG1 = ChangeLog.FromDict({ | 16 DUMMY_CHANGELOG1 = ChangeLog.FromDict({ |
| 17 'author_name': 'r@chromium.org', | 17 'author_name': 'r@chromium.org', |
| 18 'message': 'dummy', | 18 'message': 'dummy', |
| 19 'committer_email': 'r@chromium.org', | 19 'committer_email': 'r@chromium.org', |
| 20 'commit_position': 175900, | 20 'commit_position': 175900, |
| 21 'author_email': 'r@chromium.org', | 21 'author_email': 'r@chromium.org', |
| 22 'touched_files': [ | 22 'touched_files': [ |
| 23 { | 23 { |
| 24 'change_type': 'modify', | 24 'change_type': 'modify', |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 expected_match_result.file_to_analysis_info = { | 192 expected_match_result.file_to_analysis_info = { |
| 193 'a.cc': AnalysisInfo(min_distance = 0, min_distance_frame = frame1), | 193 'a.cc': AnalysisInfo(min_distance = 0, min_distance_frame = frame1), |
| 194 'b.cc': AnalysisInfo(min_distance = 3, min_distance_frame = frame2), | 194 'b.cc': AnalysisInfo(min_distance = 3, min_distance_frame = frame2), |
| 195 } | 195 } |
| 196 | 196 |
| 197 expected_match_results = MatchResults(ignore_cls=set(['2'])) | 197 expected_match_results = MatchResults(ignore_cls=set(['2'])) |
| 198 expected_match_results['1'] = expected_match_result | 198 expected_match_results['1'] = expected_match_result |
| 199 | 199 |
| 200 self._VerifyTwoMatchResultsEqual(match_results, expected_match_results) | 200 self._VerifyTwoMatchResultsEqual(match_results, expected_match_results) |
| OLD | NEW |