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

Unified Diff: scripts/slave/recipe_modules/chromite/test_api.py

Issue 1345143004: CrOS: Use local Chromite checkout for configs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebased, comments, more useful expectations. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/chromite/test_api.py
diff --git a/scripts/slave/recipe_modules/chromite/test_api.py b/scripts/slave/recipe_modules/chromite/test_api.py
new file mode 100644
index 0000000000000000000000000000000000000000..cce615989597a7cf8084f302d10226b13df046ff
--- /dev/null
+++ b/scripts/slave/recipe_modules/chromite/test_api.py
@@ -0,0 +1,19 @@
+# Copyright 2014 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 base64
+import hashlib
+
+from recipe_engine import recipe_test_api
+
+DEPS = [
+ 'gitiles',
+]
+
+class ChromiteTestApi(recipe_test_api.RecipeTestApi):
+ def seed_chromite_config(self, data, branch='master'):
+ """Seeds step data for the Chromite configuration fetch.
+ """
+ return self.m.step.step_data('read chromite config',
+ self.m.json.output(data))

Powered by Google App Engine
This is Rietveld 408576698