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

Unified Diff: appengine/findit/crash/test/suspect_test.py

Issue 2590313002: Added Blame.AddReagions(iterable) method (Closed)
Patch Set: changing Blame.AddRegions to use list.extend 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/crash/test/changelist_classifier_test.py ('k') | appengine/findit/libs/gitiles/blame.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/test/suspect_test.py
diff --git a/appengine/findit/crash/test/suspect_test.py b/appengine/findit/crash/test/suspect_test.py
index 2adfaf4051b79d328ab56e81c64449cc6ad2b1dd..38c2bb12e60a60b115e3b0d177ada22dbdf5e953 100644
--- a/appengine/findit/crash/test/suspect_test.py
+++ b/appengine/findit/crash/test/suspect_test.py
@@ -65,18 +65,15 @@ DUMMY_CHANGELOG2 = ChangeLog.FromDict({
})
DUMMY_BLAME = Blame('4', 'a.cc')
-DUMMY_BLAME.AddRegion(
- Region(1, 5, '2', 'r', 'r@chromium.org', 'Thu Mar 25 21:24:43 2016'))
-DUMMY_BLAME.AddRegion(
- Region(6, 3, '1', 'e', 'e@chromium.org', 'Thu Mar 31 21:24:43 2016'))
-DUMMY_BLAME.AddRegion(
- Region(9, 2, '3', 'k', 'k@chromium.org', 'Thu Apr 1 21:24:43 2016'))
+DUMMY_BLAME.AddRegions([
+ Region(1, 5, '2', 'r', 'r@chromium.org', 'Thu Mar 25 21:24:43 2016'),
+ Region(6, 3, '1', 'e', 'e@chromium.org', 'Thu Mar 31 21:24:43 2016'),
+ Region(9, 2, '3', 'k', 'k@chromium.org', 'Thu Apr 1 21:24:43 2016')])
DUMMY_BLAME2 = Blame('4', 'b.cc')
-DUMMY_BLAME2.AddRegion(
- Region(1, 5, '2', 'r', 'r@chromium.org', 'Thu Mar 25 21:24:43 2016'))
-DUMMY_BLAME2.AddRegion(
- Region(6, 3, '1', 'e', 'e@chromium.org', 'Thu Mar 31 21:24:43 2016'))
+DUMMY_BLAME2.AddRegions([
+ Region(1, 5, '2', 'r', 'r@chromium.org', 'Thu Mar 25 21:24:43 2016'),
+ Region(6, 3, '1', 'e', 'e@chromium.org', 'Thu Mar 31 21:24:43 2016')])
class SuspectTest(CrashTestSuite):
« no previous file with comments | « appengine/findit/crash/test/changelist_classifier_test.py ('k') | appengine/findit/libs/gitiles/blame.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698