gpu/command_buffer/build_cmd_buffer_lib.py
def WriteServiceUnitTestsForExtensions(self, filename):
    """Writes the service decoder unit tests for functions with extension_flag.

       The functions are special in that they need a specific unit test
       baseclass to turn on the extension.
    """
    functions = [f for f in self.functions if f.GetInfo('extension_flag')]
    comment = "// It is included by gles2_cmd_decoder_unittest_extensions.cc\n"
    with CHeaderWriter(filename, self.year, comment) as f:
      for func in functions:
        if True:
          if func.GetInfo('unit_test') != False:
            extension = ToCamelCase(
              ToGLExtensionString(func.GetInfo('extension_flag')))
            test_name = 'GLES2DecoderTestWith%s' % extension
            if func.IsES3():
              test_name = 'GLES3DecoderTestWith%s' % extension
            func.WriteServiceUnitTest(f, {
              'test_name': test_name
            })
    self.generated_cpp_filenames.append(filename)
Writes the service decoder unit tests for functions with extension_flag.

       The functions are special in that they need a specific unit test
       baseclass to turn on the extension.
    
Writes the service decoder unit tests for functions with extension_flag.
The functions are special in that they need a specific unit test
baseclass to turn on the extension.
Writes the service decoder unit tests for functions with extension_flag . The functions are special in that they need a specific unit test baseclass to turn on the extension .
def WriteServiceUnitTestsForExtensions(self, filename):
    functions = [f for f in self.functions if f.GetInfo('extension_flag')]
    comment = "// It is included by gles2_cmd_decoder_unittest_extensions.cc\n"
    with CHeaderWriter(filename, self.year, comment) as f:
      for func in functions:
        if True:
          if func.GetInfo('unit_test') != False:
            extension = ToCamelCase(
              ToGLExtensionString(func.GetInfo('extension_flag')))
            test_name = 'GLES2DecoderTestWith%s' % extension
            if func.IsES3():
              test_name = 'GLES3DecoderTestWith%s' % extension
            func.WriteServiceUnitTest(f, {
              'test_name': test_name
            })
    self.generated_cpp_filenames.append(filename)
def WriteServiceUnitTestsForExtensions ( self , filename ) : functions = [ f for f in self . functions if f . GetInfo ( 'extension_flag' ) ] comment = "// It is included by gles2_cmd_decoder_unittest_extensions.cc\n" with CHeaderWriter ( filename , self . year , comment ) as f : for func in functions : if True : if func . GetInfo ( 'unit_test' ) != False : extension = ToCamelCase ( ToGLExtensionString ( func . GetInfo ( 'extension_flag' ) ) ) test_name = 'GLES2DecoderTestWith%s' % extension if func . IsES3 ( ) : test_name = 'GLES3DecoderTestWith%s' % extension func . WriteServiceUnitTest ( f , { 'test_name' : test_name } ) self . generated_cpp_filenames . append ( filename )
Writes the service decoder unit tests for functions with extension_flag.
Writes the service decoder unit tests for functions with extension_flag .
"""Writes the service decoder unit tests for functions with extension_flag.

       The functions are special in that they need a specific unit test
       baseclass to turn on the extension.
    """
self
filename