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

Side by Side Diff: appengine/findit/crash/test/results_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 common.blame import Region, Blame 5 from gitiles.blame import Region, Blame
6 from common.change_log import ChangeLog 6 from gitiles.change_log import ChangeLog
7 from crash.callstack import StackFrame 7 from crash.callstack import StackFrame
8 from crash.results import Result, MatchResult, MatchResults 8 from crash.results import Result, MatchResult, MatchResults
9 from crash.test.crash_test_suite import CrashTestSuite 9 from crash.test.crash_test_suite import CrashTestSuite
10 10
11 DUMMY_CHANGELOG1 = ChangeLog.FromDict({ 11 DUMMY_CHANGELOG1 = ChangeLog.FromDict({
12 'author_name': 'r@chromium.org', 12 'author_name': 'r@chromium.org',
13 'message': 'dummy', 13 'message': 'dummy',
14 'committer_email': 'r@chromium.org', 14 'committer_email': 'r@chromium.org',
15 'commit_position': 175900, 15 'commit_position': 175900,
16 'author_email': 'r@chromium.org', 16 'author_email': 'r@chromium.org',
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 176 }
177 expected_match_result.file_to_analysis_info = { 177 expected_match_result.file_to_analysis_info = {
178 'a.cc': {'min_distance': 0, 'min_distance_frame': frame1}, 178 'a.cc': {'min_distance': 0, 'min_distance_frame': frame1},
179 'b.cc': {'min_distance': 3, 'min_distance_frame': frame2}, 179 'b.cc': {'min_distance': 3, 'min_distance_frame': frame2},
180 } 180 }
181 181
182 expected_match_results = MatchResults(ignore_cls=set(['2'])) 182 expected_match_results = MatchResults(ignore_cls=set(['2']))
183 expected_match_results['1'] = expected_match_result 183 expected_match_results['1'] = expected_match_result
184 184
185 self._VerifyTwoMatchResultsEqual(match_results, expected_match_results) 185 self._VerifyTwoMatchResultsEqual(match_results, expected_match_results)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698