Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: appengine/findit/crash/test/crash_testcase.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reverted unintended change to an __init__ file Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 10 from lib.gitiles.change_log import ChangeLog
stgao 2016/10/28 18:20:59 order of import.
wrengr 2016/10/28 19:24:48 Done.
11 from common.findit_testcase import FinditTestCase 11 from common.findit_testcase import FinditTestCase
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'],
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698