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

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

Powered by Google App Engine
This is Rietveld 408576698