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

Side by Side Diff: appengine/findit/crash/test/results_test.py

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: . Created 4 years 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 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
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)
OLDNEW
« no previous file with comments | « appengine/findit/crash/test/findit_for_chromecrash_test.py ('k') | appengine/findit/findit_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698