| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 pylib.base import base_test_result | 5 from pylib.base import base_test_result |
| 6 | 6 |
| 7 | 7 |
| 8 class InstrumentationTestResult(base_test_result.BaseTestResult): | 8 class InstrumentationTestResult(base_test_result.BaseTestResult): |
| 9 """Result information for a single instrumentation test.""" | 9 """Result information for a single instrumentation test.""" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 super(InstrumentationTestResult, self).__init__( | 21 super(InstrumentationTestResult, self).__init__( |
| 22 full_name, test_type, dur, log) | 22 full_name, test_type, dur, log) |
| 23 name_pieces = full_name.rsplit('#') | 23 name_pieces = full_name.rsplit('#') |
| 24 if len(name_pieces) > 1: | 24 if len(name_pieces) > 1: |
| 25 self._test_name = name_pieces[1] | 25 self._test_name = name_pieces[1] |
| 26 self._class_name = name_pieces[0] | 26 self._class_name = name_pieces[0] |
| 27 else: | 27 else: |
| 28 self._class_name = full_name | 28 self._class_name = full_name |
| 29 self._test_name = full_name | 29 self._test_name = full_name |
| 30 self._start_date = start_date | 30 self._start_date = start_date |
| 31 self._tombstones = None |
| 32 |
| 33 def SetTombstones(self, tombstones): |
| 34 self._tombstones = tombstones |
| OLD | NEW |