| 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 testing_utils import testing | 5 from testing_utils import testing |
| 6 from crash.test.stacktrace_test_suite import StacktraceTestSuite | 6 from crash.test.stacktrace_test_suite import StacktraceTestSuite |
| 7 | 7 |
| 8 | 8 |
| 9 class CrashTestSuite(StacktraceTestSuite): # pragma: no cover. | 9 class CrashTestSuite(StacktraceTestSuite): # pragma: no cover. |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 self.assertEqual(result1.file_to_analysis_info, | 39 self.assertEqual(result1.file_to_analysis_info, |
| 40 result2.file_to_analysis_info) | 40 result2.file_to_analysis_info) |
| 41 | 41 |
| 42 def _VerifyTwoMatchResultEqual(self, match_result1, match_result2): | 42 def _VerifyTwoMatchResultEqual(self, match_result1, match_result2): |
| 43 self.assertEqual(match_result1.file_to_analysis_info, | 43 self.assertEqual(match_result1.file_to_analysis_info, |
| 44 match_result2.file_to_analysis_info) | 44 match_result2.file_to_analysis_info) |
| 45 self._VerifyTwoResultEqual(match_result1, match_result2) | 45 self._VerifyTwoResultEqual(match_result1, match_result2) |
| 46 | 46 |
| 47 def _VerifyTwoMatchResultsEqual(self, match_results1, match_results2): | 47 def _VerifyTwoMatchResultsEqual(self, match_results1, match_results2): |
| 48 self.assertEqual(match_results1.ignore_cls, match_results2.ignore_cls) | 48 self.assertEqual(match_results1._ignore_cls, match_results2._ignore_cls) |
| 49 | 49 |
| 50 self.assertEqual(len(match_results1), len(match_results2)) | 50 self.assertEqual(len(match_results1), len(match_results2)) |
| 51 for revision1, match_result1 in match_results1.iteritems(): | 51 for revision1, match_result1 in match_results1.iteritems(): |
| 52 self.assertTrue(revision1 in match_results2) | 52 self.assertTrue(revision1 in match_results2) |
| 53 self._VerifyTwoMatchResultEqual(match_result1, match_results2[revision1]) | 53 self._VerifyTwoMatchResultEqual(match_result1, match_results2[revision1]) |
| OLD | NEW |