Home | History | Annotate | Download | only in histograms
      1 # Copyright 2013 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 """Verifies that the histograms XML file is well-formatted."""
      6 
      7 import extract_histograms
      8 import os.path
      9 
     10 
     11 def main():
     12   # This will raise an exception if the file is not well-formatted.
     13   xml_file = os.path.join(os.path.dirname(os.path.realpath(__file__)),
     14                           'histograms.xml')
     15   histograms = extract_histograms.ExtractHistograms(xml_file)
     16 
     17 
     18 if __name__ == '__main__':
     19   main()
     20 
     21