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

Unified Diff: tracing/tracing/value/histogram_unittest.py

Issue 2982283002: Delete TelemetryInfo, MergedTelemetryInfo diagnostics. (Closed)
Patch Set: rebase Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
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()
« no previous file with comments | « tracing/tracing/value/histogram_set_unittest.py ('k') | tracing/tracing/value/ui/collected_related_event_set_span_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698