tools/metrics/actions/extract_actions_test.py
def _GetProcessedAction(self, owner, description, obsolete,
                          not_user_triggered=NO_VALUE, new_actions=[],
                          comment=NO_VALUE):
    """Forms an actions XML string and returns it after processing.

    It parses the original XML string, adds new user actions (if there is any),
    and pretty prints it.

    Args:
      owner: the owner tag to be inserted in the original XML string.
      description: the description tag to be inserted in the original XML
        string.
      obsolete: the obsolete tag to be inserted in the original XML string.
      new_actions: optional. List of new user actions' names to be inserted.
      comment: the comment tag to be inserted in the original XML string.

    Returns:
      An updated and pretty-printed action XML string.
    """
    # Form the actions.xml mock content based on the input parameters.
    current_xml = ACTIONS_XML.format(owners=owner, description=description,
                                     obsolete=obsolete, comment=comment,
                                     not_user_triggered=not_user_triggered)
    actions_dict, comments, suffixes = extract_actions.ParseActionFile(
        current_xml)
    for action_name in new_actions:
      actions_dict[action_name] = action_utils.Action(action_name, None, [])
    return extract_actions.PrettyPrint(actions_dict, comments, suffixes)
Forms an actions XML string and returns it after processing.

    It parses the original XML string, adds new user actions (if there is any),
    and pretty prints it.

    Args:
      owner: the owner tag to be inserted in the original XML string.
      description: the description tag to be inserted in the original XML
        string.
      obsolete: the obsolete tag to be inserted in the original XML string.
      new_actions: optional. List of new user actions' names to be inserted.
      comment: the comment tag to be inserted in the original XML string.

    Returns:
      An updated and pretty-printed action XML string.
    
Forms an actions XML string and returns it after processing.
It parses the original XML string, adds new user actions (if there is any),
and pretty prints it.
Forms an actions XML string and returns it after processing . It parses the original XML string adds new user actions ( if there is any ) and pretty prints it .
def _GetProcessedAction(self, owner, description, obsolete,
                          not_user_triggered=NO_VALUE, new_actions=[],
                          comment=NO_VALUE):
    current_xml = ACTIONS_XML.format(owners=owner, description=description,
                                     obsolete=obsolete, comment=comment,
                                     not_user_triggered=not_user_triggered)
    actions_dict, comments, suffixes = extract_actions.ParseActionFile(
        current_xml)
    for action_name in new_actions:
      actions_dict[action_name] = action_utils.Action(action_name, None, [])
    return extract_actions.PrettyPrint(actions_dict, comments, suffixes)
def _GetProcessedAction ( self , owner , description , obsolete , not_user_triggered = NO_VALUE , new_actions = [ ] , comment = NO_VALUE ) : current_xml = ACTIONS_XML . format ( owners = owner , description = description , obsolete = obsolete , comment = comment , not_user_triggered = not_user_triggered ) actions_dict , comments , suffixes = extract_actions . ParseActionFile ( current_xml ) for action_name in new_actions : actions_dict [ action_name ] = action_utils . Action ( action_name , None , [ ] ) return extract_actions . PrettyPrint ( actions_dict , comments , suffixes )
Forms an actions XML string and returns it after processing.
Forms an actions XML string and returns it after processing .
"""Forms an actions XML string and returns it after processing.

    It parses the original XML string, adds new user actions (if there is any),
    and pretty prints it.

    Args:
      owner: the owner tag to be inserted in the original XML string.
      description: the description tag to be inserted in the original XML
        string.
      obsolete: the obsolete tag to be inserted in the original XML string.
      new_actions: optional. List of new user actions' names to be inserted.
      comment: the comment tag to be inserted in the original XML string.

    Returns:
      An updated and pretty-printed action XML string.
    """ # Form the actions.xml mock content based on the input parameters.
An updated and pretty-printed action XML string.
An updated and pretty - printed action XML string .
self
owner
the owner tag to be inserted in the original XML string.
the owner tag to be inserted in the original XML string .
description
the description tag to be inserted in the original XML
string.
the description tag to be inserted in the original XML string .
obsolete
the obsolete tag to be inserted in the original XML string.
the obsolete tag to be inserted in the original XML string .
not_user_triggered
new_actions
optional. List of new user actions' names to be inserted.
optional . List of new user actions ' names to be inserted .
comment
the comment tag to be inserted in the original XML string.
the comment tag to be inserted in the original XML string .