def ValidateSingleFile(input_api, output_api, file_obj, cwd, results):
    'Does corresponding validations if histograms.xml or enums.xml is changed.\n\n  Args:\n    input_api: An input_api instance that contains information about changes.\n    output_api: An output_api instance to create results of the PRESUBMIT check.\n    file_obj: A file object of one of the changed files.\n    cwd: Path to current working directory.\n    results: The returned variable which is a list of output_api results.\n\n  Returns:\n    A boolean that True if a histograms.xml or enums.xml file is changed.\n  '
    p = file_obj.AbsoluteLocalPath()
    if (input_api.os_path.commonprefix([p, cwd]) != cwd):
        return False
    filepath = input_api.os_path.relpath(p, cwd)
    if ('test_data' in filepath):
        return False
    if ('obsolete_histograms.xml' in filepath):
        GetObsoleteXmlErrors(input_api, output_api, cwd, results)
        return False
    elif (('histograms.xml' in filepath) or ('histogram_suffixes_list.xml' in filepath)):
        GetPrettyPrintErrors(input_api, output_api, cwd, filepath, results)
        return True
    elif ('enums.xml' in filepath):
        GetPrettyPrintErrors(input_api, output_api, cwd, filepath, results)
        return True
    return False
Does corresponding validations if histograms.xml or enums.xml is changed.

Args:
  input_api: An input_api instance that contains information about changes.
  output_api: An output_api instance to create results of the PRESUBMIT check.
  file_obj: A file object of one of the changed files.
  cwd: Path to current working directory.
  results: The returned variable which is a list of output_api results.

Returns:
  A boolean that True if a histograms.xml or enums.xml file is changed.
def ValidateSingleFile(input_api, output_api, file_obj, cwd, results):
    'Does corresponding validations if histograms.xml or enums.xml is changed.\n\n  Args:\n    input_api: An input_api instance that contains information about changes.\n    output_api: An output_api instance to create results of the PRESUBMIT check.\n    file_obj: A file object of one of the changed files.\n    cwd: Path to current working directory.\n    results: The returned variable which is a list of output_api results.\n\n  Returns:\n    A boolean that True if a histograms.xml or enums.xml file is changed.\n  '
    p = file_obj.AbsoluteLocalPath()
    if (input_api.os_path.commonprefix([p, cwd]) != cwd):
        return False
    filepath = input_api.os_path.relpath(p, cwd)
    if ('test_data' in filepath):
        return False
    if ('obsolete_histograms.xml' in filepath):
        GetObsoleteXmlErrors(input_api, output_api, cwd, results)
        return False
    elif (('histograms.xml' in filepath) or ('histogram_suffixes_list.xml' in filepath)):
        GetPrettyPrintErrors(input_api, output_api, cwd, filepath, results)
        return True
    elif ('enums.xml' in filepath):
        GetPrettyPrintErrors(input_api, output_api, cwd, filepath, results)
        return True
    return False