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

Unified Diff: appengine/findit/gae_libs/testcase.py

Issue 2673733002: [Predator] Add CrashData class to process raw json crash data. (Closed)
Patch Set: Rebase and fix nits. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/gae_libs/testcase.py
diff --git a/appengine/findit/gae_libs/testcase.py b/appengine/findit/gae_libs/testcase.py
index 080b01a901bf39f5dcc43937c393b5c376165246..ecdae81f99ef7ef01fd779d454926341be1de6a0 100644
--- a/appengine/findit/gae_libs/testcase.py
+++ b/appengine/findit/gae_libs/testcase.py
@@ -75,4 +75,9 @@ class TestCase(testing.AppengineTestCase): # pragma: no cover.
def GetMockHttpClient(self, response_for_url=None):
"""Returns mocked http client class."""
- return MockHttpClient(response_for_url)
+ return MockHttpClient(response_for_url or {})
+
+ def GetMockRepoFactory(self, response_for_url=None):
+ """Returns mocked repository factory."""
+ return GitilesRepository.Factory(
+ self.GetMockHttpClient(response_for_url or {}))
« no previous file with comments | « appengine/findit/crash/test/predator_testcase.py ('k') | appengine/findit/handlers/crash/test/crash_handler_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698