gpu/command_buffer/build_cmd_buffer_lib.py
def WriteFormatTest(self, filename):
    """Writes the command buffer format test."""
    comment = ("// This file contains unit tests for %s commands\n"
               "// It is included by %s_cmd_format_test.cc\n\n" %
               (_lower_prefix, _lower_prefix))
    with CHeaderWriter(filename, self.year, comment) as f:
      for func in self.functions:
        func.WriteFormatTest(f)
    self.generated_cpp_filenames.append(filename)
Writes the command buffer format test.
Writes the command buffer format test.
Writes the command buffer format test .
def WriteFormatTest(self, filename):
    comment = ("// This file contains unit tests for %s commands\n"
               "// It is included by %s_cmd_format_test.cc\n\n" %
               (_lower_prefix, _lower_prefix))
    with CHeaderWriter(filename, self.year, comment) as f:
      for func in self.functions:
        func.WriteFormatTest(f)
    self.generated_cpp_filenames.append(filename)
def WriteFormatTest ( self , filename ) : comment = ( "// This file contains unit tests for %s commands\n" "// It is included by %s_cmd_format_test.cc\n\n" % ( _lower_prefix , _lower_prefix ) ) with CHeaderWriter ( filename , self . year , comment ) as f : for func in self . functions : func . WriteFormatTest ( f ) self . generated_cpp_filenames . append ( filename )
Writes the command buffer format test.
Writes the command buffer format test .
"""Writes the command buffer format test."""
self
filename