| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 copy | 5 import copy |
| 6 import re | 6 import re |
| 7 | 7 |
| 8 import gae_ts_mon | 8 import gae_ts_mon |
| 9 from google.appengine.api import users | 9 from google.appengine.api import users |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 }, | 88 }, |
| 89 ], | 89 ], |
| 90 'commit_url': | 90 'commit_url': |
| 91 'https://repo.test/+/1', | 91 'https://repo.test/+/1', |
| 92 'code_review_url': 'https://codereview.chromium.org/3281', | 92 'code_review_url': 'https://codereview.chromium.org/3281', |
| 93 'revision': '1', | 93 'revision': '1', |
| 94 'reverted_revision': None | 94 'reverted_revision': None |
| 95 }) | 95 }) |
| 96 | 96 |
| 97 | 97 |
| 98 | |
| 99 class PredatorTestCase(TestCase): # pragma: no cover | 98 class PredatorTestCase(TestCase): # pragma: no cover |
| 100 | 99 |
| 101 def setUp(self): | 100 def setUp(self): |
| 102 super(PredatorTestCase, self).setUp() | 101 super(PredatorTestCase, self).setUp() |
| 103 CrashConfig.Get().Update( | 102 CrashConfig.Get().Update( |
| 104 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) | 103 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) |
| 105 gae_ts_mon.reset_for_unittest(disable=True) | 104 gae_ts_mon.reset_for_unittest(disable=True) |
| 106 | 105 |
| 107 def GetDummyChangeLog(self): | 106 def GetDummyChangeLog(self): |
| 108 return DUMMY_CHANGELOG | 107 return DUMMY_CHANGELOG |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 'platform': platform, | 213 'platform': platform, |
| 215 'stack_trace': stack_trace, | 214 'stack_trace': stack_trace, |
| 216 'regression_range': regression_range, | 215 'regression_range': regression_range, |
| 217 'crash_identifiers': crash_identifiers, | 216 'crash_identifiers': crash_identifiers, |
| 218 'customized_data': customized_data | 217 'customized_data': customized_data |
| 219 } | 218 } |
| 220 # This insertion of client_id is used for debugging ScheduleNewAnalysis. | 219 # This insertion of client_id is used for debugging ScheduleNewAnalysis. |
| 221 if client_id is not None: # pragma: no cover | 220 if client_id is not None: # pragma: no cover |
| 222 crash_data['client_id'] = client_id | 221 crash_data['client_id'] = client_id |
| 223 return crash_data | 222 return crash_data |
| OLD | NEW |