| 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 from google.appengine.api import users | 9 from google.appengine.api import users |
| 9 | 10 |
| 10 from gae_libs.testcase import TestCase | 11 from gae_libs.testcase import TestCase |
| 11 from libs.http import retry_http_client | 12 from libs.http import retry_http_client |
| 12 from lib.gitiles.change_log import ChangeLog | 13 from lib.gitiles.change_log import ChangeLog |
| 13 from model.crash.crash_config import CrashConfig | 14 from model.crash.crash_config import CrashConfig |
| 14 | 15 |
| 15 | 16 |
| 16 DEFAULT_CONFIG_DATA = { | 17 DEFAULT_CONFIG_DATA = { |
| 17 'fracas': { | 18 'fracas': { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 }) | 83 }) |
| 83 | 84 |
| 84 | 85 |
| 85 | 86 |
| 86 class CrashTestCase(TestCase): # pragma: no cover. | 87 class CrashTestCase(TestCase): # pragma: no cover. |
| 87 | 88 |
| 88 def setUp(self): | 89 def setUp(self): |
| 89 super(CrashTestCase, self).setUp() | 90 super(CrashTestCase, self).setUp() |
| 90 CrashConfig.Get().Update( | 91 CrashConfig.Get().Update( |
| 91 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) | 92 users.User(email='admin@chromium.org'), True, **DEFAULT_CONFIG_DATA) |
| 93 gae_ts_mon.reset_for_unittest(disable=True) |
| 92 | 94 |
| 93 def GetDummyChangeLog(self): | 95 def GetDummyChangeLog(self): |
| 94 return DUMMY_CHANGELOG | 96 return DUMMY_CHANGELOG |
| OLD | NEW |