Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / tools / metrics / histograms / validate_format.py
blob3977bc0c5926474fb7f808c18568a1f2608a8a34
1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 """Verifies that the histograms XML file is well-formatted."""
8 import os
9 import sys
11 sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
12 import path_util
14 import extract_histograms
16 def main():
17 # This will raise an exception if the file is not well-formatted.
18 xml_file = path_util.GetHistogramsFile()
19 histograms = extract_histograms.ExtractHistograms(xml_file)
22 if __name__ == '__main__':
23 main()