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

Unified Diff: appengine/findit/crash/findit_for_clusterfuzz.py

Issue 2414523002: [Findit] Reorganizing findit_for_*.py (Closed)
Patch Set: Finally fixed the mock tests! 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/crash/findit_for_client.py ('k') | appengine/findit/crash/findit_for_crash.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/findit_for_clusterfuzz.py
diff --git a/appengine/findit/crash/findit_for_clusterfuzz.py b/appengine/findit/crash/findit_for_clusterfuzz.py
new file mode 100644
index 0000000000000000000000000000000000000000..eaed7ae08e5307a44434d4f17c4f0b711904761e
--- /dev/null
+++ b/appengine/findit/crash/findit_for_clusterfuzz.py
@@ -0,0 +1,42 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import logging
+
+from google.appengine.ext import ndb
+
+from crash.findit import Findit
+from crash.type_enums import CrashClient
+
+# TODO(katesonia): Implement this class.
+class FinditForClusterfuzz(Findit): # pragma: no cover
+ @classmethod
+ def _ClientID(cls):
+ return CrashClient.CLUSTERFUZZ
+
+ def __init__(self, repository, pipeline_cls):
+ super(FinditForClusterfuzz, self).__init__(repository, pipeline_cls)
+ logging.info('Client %s is not supported by findit right now',
+ self.client_id)
+ raise NotImplementedError()
+
+ def CreateAnalysis(self, crash_identifiers):
+ raise NotImplementedError()
+
+ def GetAnalysis(self, crash_identifiers):
+ raise NotImplementedError()
+
+ def _InitializeAnalysis(self, model, crash_data):
+ super(FinditForClusterfuzz, self)._InitializeAnalysis(model, crash_data)
+ raise NotImplementedError()
+
+ @ndb.transactional
+ def _NeedsNewAnalysis(self, crash_data):
+ raise NotImplementedError()
+
+ def CheckPolicy(self, crash_data):
+ return crash_data
+
+ def FindCulprit(self, model):
+ raise NotImplementedError()
« no previous file with comments | « appengine/findit/crash/findit_for_client.py ('k') | appengine/findit/crash/findit_for_crash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698