| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import json | 5 import json |
| 6 | 6 |
| 7 from slave import recipe_test_api | 7 from recipe_engine import recipe_test_api |
| 8 | 8 |
| 9 | 9 |
| 10 class GatekeeperTestApi(recipe_test_api.RecipeTestApi): | 10 class GatekeeperTestApi(recipe_test_api.RecipeTestApi): |
| 11 def fake_test_data(self): | 11 def fake_test_data(self): |
| 12 return self.m.json.output({ | 12 return self.m.json.output({ |
| 13 'blink': { | 13 'blink': { |
| 14 'build-db': 'blink_build_db.json', | 14 'build-db': 'blink_build_db.json', |
| 15 'masters': [ | 15 'masters': [ |
| 16 'https://build.chromium.org/p/chromium.webkit', | 16 'https://build.chromium.org/p/chromium.webkit', |
| 17 ], | 17 ], |
| 18 'filter-domain': 'google.com', | 18 'filter-domain': 'google.com', |
| 19 'open-tree': True, | 19 'open-tree': True, |
| 20 'password-file': '.blink_status_password', | 20 'password-file': '.blink_status_password', |
| 21 'revision-properties': 'got_revision,got_webkit_revision', | 21 'revision-properties': 'got_revision,got_webkit_revision', |
| 22 'set-status': True, | 22 'set-status': True, |
| 23 'sheriff-url': 'https://build.chromium.org/p/chromium/%s.js', | 23 'sheriff-url': 'https://build.chromium.org/p/chromium/%s.js', |
| 24 'status-url': 'https://blink-status.appspot.com', | 24 'status-url': 'https://blink-status.appspot.com', |
| 25 'status-user': 'gatekeeper@google.com', | 25 'status-user': 'gatekeeper@google.com', |
| 26 'track-revisions': True, | 26 'track-revisions': True, |
| 27 'use-project-email-address': True, | 27 'use-project-email-address': True, |
| 28 }, | 28 }, |
| 29 'chromium': {}, | 29 'chromium': {}, |
| 30 }) | 30 }) |
| 31 | 31 |
| 32 def read_real_config(self, f): | 32 def read_real_config(self, f): |
| 33 return self.m.json.output(json.loads(self.m.file.read_in_build(f))) | 33 return self.m.json.output(json.loads(self.m.file.read_in_build(f))) |
| 34 | 34 |
| 35 def read_real_internal_config(self, f): # pragma nocover | 35 def read_real_internal_config(self, f): # pragma nocover |
| 36 return self.m.json.output(json.loads(self.m.file.read_in_build_internal(f))) | 36 return self.m.json.output(json.loads(self.m.file.read_in_build_internal(f))) |
| OLD | NEW |