components/exo/wayland/fuzzer/wayland_sequencer.py
def Main(argv):
  """Instantiate the group of message-sequences used to seed the fuzzer.

  Args:
    argv: command-line arguments used to run the sequencer.
  """
  parsed = wlu.ParseOpts(argv)

  protocols = wlu.ReadProtocols(parsed.spec)
  dep_graph = GetDependencyGraph(protocols)
  for _, interface in wlu.AllInterfaces(protocols):
    for req in interface.findall('request'):
      interface_name = interface.attrib['name']
      message_name = req.attrib['name']
      builder = SequenceBuilder(interface_name + '_' + message_name, dep_graph)
      builder.BuildMessage(interface_name, message_name, '')

      # Add a round-trip to the sequence in case the server wants to do
      # something funky.
      builder.AppendRoundTrip()

      SequenceToTemplate(parsed, builder)

  # For sequences which are more complicated than a dependency search, we have
  # a manual backup.
  for sequence_builder in GetManualSequences(dep_graph):
    SequenceToTemplate(parsed, sequence_builder)
Instantiate the group of message-sequences used to seed the fuzzer.

  Args:
    argv: command-line arguments used to run the sequencer.
  
Instantiate the group of message-sequences used to seed the fuzzer.
Instantiate the group of message - sequences used to seed the fuzzer .
def Main(argv):
  parsed = wlu.ParseOpts(argv)
  protocols = wlu.ReadProtocols(parsed.spec)
  dep_graph = GetDependencyGraph(protocols)
  for _, interface in wlu.AllInterfaces(protocols):
    for req in interface.findall('request'):
      interface_name = interface.attrib['name']
      message_name = req.attrib['name']
      builder = SequenceBuilder(interface_name + '_' + message_name, dep_graph)
      builder.BuildMessage(interface_name, message_name, '')
      builder.AppendRoundTrip()
      SequenceToTemplate(parsed, builder)
  for sequence_builder in GetManualSequences(dep_graph):
    SequenceToTemplate(parsed, sequence_builder)
def Main ( argv ) : parsed = wlu . ParseOpts ( argv ) protocols = wlu . ReadProtocols ( parsed . spec ) dep_graph = GetDependencyGraph ( protocols ) for _ , interface in wlu . AllInterfaces ( protocols ) : for req in interface . findall ( 'request' ) : interface_name = interface . attrib [ 'name' ] message_name = req . attrib [ 'name' ] builder = SequenceBuilder ( interface_name + '_' + message_name , dep_graph ) builder . BuildMessage ( interface_name , message_name , '' ) builder . AppendRoundTrip ( ) SequenceToTemplate ( parsed , builder ) for sequence_builder in GetManualSequences ( dep_graph ) : SequenceToTemplate ( parsed , sequence_builder )
Instantiate the group of message-sequences used to seed the fuzzer.
Instantiate the group of message - sequences used to seed the fuzzer .
"""Instantiate the group of message-sequences used to seed the fuzzer.

  Args:
    argv: command-line arguments used to run the sequencer.
  """ # Add a round-trip to the sequence in case the server wants to do # something funky. # For sequences which are more complicated than a dependency search, we have # a manual backup.
argv
command-line arguments used to run the sequencer.
command - line arguments used to run the sequencer .