tools/metrics/histograms/extract_histograms_test.py
def testUpdateNameDuplicateVariant(self, _, input_xml):
    """Tests that if duplicate names are generated due to multiple tokens
    having the same variant and empty string variant, an error is reported."""
    histogram_with_duplicate_variant = xml.dom.minidom.parseString(input_xml)
    histograms_dict, _ = extract_histograms._ExtractHistogramsFromXmlTree(
        histogram_with_duplicate_variant, {})
    _, have_errors = extract_histograms._UpdateHistogramsWithTokens(
        histograms_dict)
    self.assertTrue(have_errors)
Tests that if duplicate names are generated due to multiple tokens
    having the same variant and empty string variant, an error is reported.
Tests that if duplicate names are generated due to multiple tokens
having the same variant and empty string variant, an error is reported.
Tests that if duplicate names are generated due to multiple tokens having the same variant and empty string variant an error is reported .
def testUpdateNameDuplicateVariant(self, _, input_xml):
    histogram_with_duplicate_variant = xml.dom.minidom.parseString(input_xml)
    histograms_dict, _ = extract_histograms._ExtractHistogramsFromXmlTree(
        histogram_with_duplicate_variant, {})
    _, have_errors = extract_histograms._UpdateHistogramsWithTokens(
        histograms_dict)
    self.assertTrue(have_errors)
def testUpdateNameDuplicateVariant ( self , _ , input_xml ) : histogram_with_duplicate_variant = xml . dom . minidom . parseString ( input_xml ) histograms_dict , _ = extract_histograms . _ExtractHistogramsFromXmlTree ( histogram_with_duplicate_variant , { } ) _ , have_errors = extract_histograms . _UpdateHistogramsWithTokens ( histograms_dict ) self . assertTrue ( have_errors )
Tests that if duplicate names are generated due to multiple tokens
having the same variant and empty string variant, an error is reported.
Tests that if duplicate names are generated due to multiple tokens having the same variant and empty string variant an error is reported .
"""Tests that if duplicate names are generated due to multiple tokens
    having the same variant and empty string variant, an error is reported."""
self
_
input_xml