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

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: reordering imports Created 4 years, 1 month 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
6 from common.blame import Blame
7 from common.change_log import ChangeLog
8 from crash.stacktrace import StackFrame
9 from crash.results import AnalysisInfo 5 from crash.results import AnalysisInfo
10 from crash.results import Result
11 from crash.results import MatchResult 6 from crash.results import MatchResult
12 from crash.results import MatchResults 7 from crash.results import MatchResults
8 from crash.results import Result
9 from crash.stacktrace import StackFrame
13 from crash.test.crash_test_suite import CrashTestSuite 10 from crash.test.crash_test_suite import CrashTestSuite
11 from lib.gitiles.blame import Blame
12 from lib.gitiles.blame import Region
13 from lib.gitiles.change_log import ChangeLog
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',
18 'committer_email': 'r@chromium.org', 18 'committer_email': 'r@chromium.org',
19 'commit_position': 175900, 19 'commit_position': 175900,
20 'author_email': 'r@chromium.org', 20 'author_email': 'r@chromium.org',
21 'touched_files': [ 21 'touched_files': [
22 { 22 {
23 'change_type': 'modify', 23 'change_type': 'modify',
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)
OLDNEW
« no previous file with comments | « appengine/findit/crash/test/findit_for_chromecrash_test.py ('k') | appengine/findit/handlers/build_failure.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698