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

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

Issue 2043973002: [Findit] Fracas crash triage dashboard (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 6 months 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 from common import chromium_deps 5 from common import chromium_deps
6 from common.dependency import DependencyRoll 6 from common.dependency import DependencyRoll
7 from crash import detect_regression_range 7 from crash import detect_regression_range
8 from crash import fracas 8 from crash import fracas
9 from crash import fracas_parser 9 from crash import fracas_parser
10 from crash import findit_for_crash 10 from crash import findit_for_crash
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 results, tag = fracas.FindCulpritForChromeCrash( 87 results, tag = fracas.FindCulpritForChromeCrash(
88 'signature', 'win', 'frame1\nframe2', '50.0.1234.0', 88 'signature', 'win', 'frame1\nframe2', '50.0.1234.0',
89 [{'chrome_version': '50.0.1234.0', 'cpm': 0.6}]) 89 [{'chrome_version': '50.0.1234.0', 'cpm': 0.6}])
90 90
91 expected_results = { 91 expected_results = {
92 'found': True, 92 'found': True,
93 'suspected_project': '', 93 'suspected_project': '',
94 'suspected_components': [], 94 'suspected_components': [],
95 'suspected_cls': ['DummyResultObject'], 95 'suspected_cls': ['DummyResultObject'],
96 'regression_range': ('50.0.1233.0', '50.0.1234.0')
96 } 97 }
97 expected_tag = { 98 expected_tag = {
98 'found_suspects': True, 99 'found_suspects': True,
99 'has_regression_range': True, 100 'has_regression_range': True,
100 'solution': 'core_algorithm', 101 'solution': 'core_algorithm',
101 } 102 }
102 103
103 self.assertEqual(expected_results, results) 104 self.assertEqual(expected_results, results)
104 self.assertEqual(expected_tag, tag) 105 self.assertEqual(expected_tag, tag)
105 106
106 results, tag = fracas.FindCulpritForChromeCrash( 107 results, tag = fracas.FindCulpritForChromeCrash(
107 'signature', 'win', 'frame1\nframe2', '50.0.1234.0', 108 'signature', 'win', 'frame1\nframe2', '50.0.1234.0',
108 []) 109 [])
109 110
110 expected_results = { 111 expected_results = {
111 'found': False, 112 'found': False,
112 'suspected_project': '', 113 'suspected_project': '',
113 'suspected_components': [], 114 'suspected_components': [],
114 'suspected_cls': [], 115 'suspected_cls': [],
116 'regression_range': None
115 } 117 }
116 expected_tag = { 118 expected_tag = {
117 'found_suspects': False, 119 'found_suspects': False,
118 'has_regression_range': False, 120 'has_regression_range': False,
119 'solution': 'core_algorithm', 121 'solution': 'core_algorithm',
120 } 122 }
121 123
122 self.assertEqual(expected_results, results) 124 self.assertEqual(expected_results, results)
123 self.assertEqual(expected_tag, tag) 125 self.assertEqual(expected_tag, tag)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698