| 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 | 6 |
| 7 from google.appengine.api import users | 7 from google.appengine.api import users |
| 8 | 8 |
| 9 from common.findit_testcase import FinditTestCase | 9 from common.findit_testcase import FinditTestCase |
| 10 from model.crash.crash_config import CrashConfig | 10 from model.crash.crash_config import CrashConfig |
| 11 | 11 |
| 12 | 12 |
| 13 DEFAULT_CONFIG_DATA = { | 13 DEFAULT_CONFIG_DATA = { |
| 14 'fracas': { | 14 'fracas': { |
| 15 'crash_data_push_token': 'secret_token', | |
| 16 'analysis_result_pubsub_topic': 'projects/project-name/topics/name', | 15 'analysis_result_pubsub_topic': 'projects/project-name/topics/name', |
| 17 'supported_platform_list_by_channel': { | 16 'supported_platform_list_by_channel': { |
| 18 'canary': ['win', 'mac'], | 17 'canary': ['win', 'mac'], |
| 19 'supported_channel': ['supported_platform'], | 18 'supported_channel': ['supported_platform'], |
| 20 }, | 19 }, |
| 21 } | 20 } |
| 22 } | 21 } |
| 23 | 22 |
| 24 class CrashTestCase(FinditTestCase): # pragma: no cover. | 23 class CrashTestCase(FinditTestCase): # pragma: no cover. |
| 25 | 24 |
| 26 def setUp(self): | 25 def setUp(self): |
| 27 super(CrashTestCase, self).setUp() | 26 super(CrashTestCase, self).setUp() |
| 28 CrashConfig.Get().Update( | 27 CrashConfig.Get().Update( |
| 29 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) | 28 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) |
| 30 | 29 |
| 31 | 30 |
| OLD | NEW |