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

Side by Side Diff: appengine/findit/crash/test/findit_for_crash_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 collections import defaultdict 5 from collections import defaultdict
6 6
7 from common.blame import Region, Blame 7 from gitiles.blame import Region, Blame
8 from common.change_log import ChangeLog 8 from gitiles.change_log import ChangeLog
9 from gitiles.git_repository import GitRepository
9 from common.dependency import Dependency, DependencyRoll 10 from common.dependency import Dependency, DependencyRoll
10 from common.git_repository import GitRepository
11 from crash import findit_for_crash 11 from crash import findit_for_crash
12 from crash.callstack import StackFrame, CallStack 12 from crash.callstack import StackFrame, CallStack
13 from crash.results import MatchResult 13 from crash.results import MatchResult
14 from crash.stacktrace import Stacktrace 14 from crash.stacktrace import Stacktrace
15 from crash.test.crash_test_suite import CrashTestSuite 15 from crash.test.crash_test_suite import CrashTestSuite
16 16
17 17
18 DUMMY_CHANGELOG1 = ChangeLog.FromDict({ 18 DUMMY_CHANGELOG1 = ChangeLog.FromDict({
19 'author_name': 'r@chromium.org', 19 'author_name': 'r@chromium.org',
20 'message': 'dummy', 20 'message': 'dummy',
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 return [match_result1, match_result2] 404 return [match_result1, match_result2]
405 405
406 self.mock(findit_for_crash, 'FindMatchResults', _MockFindMatchResults) 406 self.mock(findit_for_crash, 'FindMatchResults', _MockFindMatchResults)
407 407
408 regression_deps_rolls = {'src/': DependencyRoll('src/', 'https://repo', 408 regression_deps_rolls = {'src/': DependencyRoll('src/', 'https://repo',
409 '1', '2')} 409 '1', '2')}
410 410
411 self.assertEqual(findit_for_crash.FindItForCrash( 411 self.assertEqual(findit_for_crash.FindItForCrash(
412 Stacktrace(), regression_deps_rolls, {}, 7), []) 412 Stacktrace(), regression_deps_rolls, {}, 7), [])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698