Change next_proto member type.
[chromium-blink-merge.git] / tools / metrics / histograms / validate_format.py
blob4ca3e0873b66ac646e0973bbfa1a4ccef1d312d6
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 extract_histograms
9 import os.path
12 def main():
13 # This will raise an exception if the file is not well-formatted.
14 xml_file = os.path.join(os.path.dirname(os.path.realpath(__file__)),
15 'histograms.xml')
16 histograms = extract_histograms.ExtractHistograms(xml_file)
19 if __name__ == '__main__':
20 main()