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

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

Powered by Google App Engine
This is Rietveld 408576698