| Index: tracing/tracing/value/histogram_unittest.py
|
| diff --git a/tracing/tracing/value/histogram_unittest.py b/tracing/tracing/value/histogram_unittest.py
|
| index ca5841912f43bf026a41f6541b435db9e2af21e9..f6fcee3ec819b2a625f7c45dbdc3ea220dadd0ae 100644
|
| --- a/tracing/tracing/value/histogram_unittest.py
|
| +++ b/tracing/tracing/value/histogram_unittest.py
|
| @@ -635,80 +635,6 @@ class TagMapUnittest(unittest.TestCase):
|
| set(['story3', 'story4', 'story5']))
|
|
|
|
|
| -class TelemetryInfoUnittest(unittest.TestCase):
|
| - def testRoundtrip(self):
|
| - info = histogram.TelemetryInfo()
|
| - info.AddInfo({
|
| - 'benchmarkName': 'foo',
|
| - 'benchmarkStartMs': 42,
|
| - 'label': 'lbl',
|
| - 'storyDisplayName': 'story',
|
| - 'storyGroupingKeys': {'a': 'b'},
|
| - 'storysetRepeatCounter': 1,
|
| - 'legacyTIRLabel': 'tir',
|
| - })
|
| - d = info.AsDict()
|
| - clone = diagnostic.Diagnostic.FromDict(d)
|
| - self.assertEqual(ToJSON(d), ToJSON(clone.AsDict()))
|
| - self.assertEqual(clone.benchmark_name, 'foo')
|
| - self.assertEqual(clone.benchmark_start, 42)
|
| - self.assertEqual(clone.label, 'lbl')
|
| - self.assertEqual(clone.story_display_name, 'story')
|
| - self.assertEqual(clone.story_grouping_keys['a'], 'b')
|
| - self.assertEqual(clone.storyset_repeat_counter, 1)
|
| - self.assertEqual(clone.legacy_tir_label, 'tir')
|
| -
|
| - def testEquality(self):
|
| - info0 = histogram.TelemetryInfo()
|
| - info0.AddInfo({
|
| - 'benchmarkName': 'foo',
|
| - 'benchmarkStartMs': 42,
|
| - 'label': 'lbl',
|
| - 'storyDisplayName': 'story',
|
| - 'storyGroupingKeys': {'a': 'b'},
|
| - 'storysetRepeatCounter': 1,
|
| - 'legacyTIRLabel': 'tir',
|
| - })
|
| - info0.guid = 'abc'
|
| - info1 = histogram.TelemetryInfo()
|
| - info1.AddInfo({
|
| - 'benchmarkName': 'foo',
|
| - 'benchmarkStartMs': 42,
|
| - 'label': 'lbl',
|
| - 'storyDisplayName': 'story',
|
| - 'storyGroupingKeys': {'a': 'b'},
|
| - 'storysetRepeatCounter': 1,
|
| - 'legacyTIRLabel': 'tir',
|
| - })
|
| - info1.guid = 'def'
|
| - self.assertEqual(info0, info1)
|
| -
|
| - def testInequality(self):
|
| - info0 = histogram.TelemetryInfo()
|
| - info0.AddInfo({
|
| - 'benchmarkName': 'foo',
|
| - 'benchmarkStartMs': 42,
|
| - 'label': 'lbl',
|
| - 'storyDisplayName': 'story',
|
| - 'storyGroupingKeys': {'a': 'b'},
|
| - 'storysetRepeatCounter': 1,
|
| - 'legacyTIRLabel': 'tir',
|
| - })
|
| - info0.guid = 'abc'
|
| - info1 = histogram.TelemetryInfo()
|
| - info1.AddInfo({
|
| - 'benchmarkName': 'baz',
|
| - 'benchmarkStartMs': 42,
|
| - 'label': 'lbl',
|
| - 'storyDisplayName': 'story',
|
| - 'storyGroupingKeys': {'a': 'b'},
|
| - 'storysetRepeatCounter': 1,
|
| - 'legacyTIRLabel': 'tir',
|
| - })
|
| - info1.guid = 'def'
|
| - self.assertNotEqual(info0, info1)
|
| -
|
| -
|
| class RelatedEventSetUnittest(unittest.TestCase):
|
| def testRoundtrip(self):
|
| events = histogram.RelatedEventSet()
|
|
|