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 from google.appengine.api import users | 8 from google.appengine.api import users |
9 | 9 |
10 from common.change_log import ChangeLog | |
11 from common.findit_testcase import FinditTestCase | 10 from common.findit_testcase import FinditTestCase |
| 11 from lib.gitiles.change_log import ChangeLog |
12 from model.crash.crash_config import CrashConfig | 12 from model.crash.crash_config import CrashConfig |
13 | 13 |
14 | 14 |
15 DEFAULT_CONFIG_DATA = { | 15 DEFAULT_CONFIG_DATA = { |
16 'fracas': { | 16 'fracas': { |
17 'analysis_result_pubsub_topic': 'projects/project-name/topics/name', | 17 'analysis_result_pubsub_topic': 'projects/project-name/topics/name', |
18 'supported_platform_list_by_channel': { | 18 'supported_platform_list_by_channel': { |
19 'canary': ['win', 'mac', 'linux'], | 19 'canary': ['win', 'mac', 'linux'], |
20 'supported_channel': ['supported_platform'], | 20 'supported_channel': ['supported_platform'], |
21 }, | 21 }, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 class CrashTestCase(FinditTestCase): # pragma: no cover. | 84 class CrashTestCase(FinditTestCase): # pragma: no cover. |
85 | 85 |
86 def setUp(self): | 86 def setUp(self): |
87 super(CrashTestCase, self).setUp() | 87 super(CrashTestCase, self).setUp() |
88 CrashConfig.Get().Update( | 88 CrashConfig.Get().Update( |
89 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) | 89 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) |
90 | 90 |
91 def GetDummyChangeLog(self): | 91 def GetDummyChangeLog(self): |
92 return DUMMY_CHANGELOG | 92 return DUMMY_CHANGELOG |
OLD | NEW |