parameters: (self, func, file)
docstring: Overrriden from TypeHandler.
docstring_summary: Overrriden from TypeHandler.
docstring_tokens: Overrriden from TypeHandler .
function: def WriteGLES2ImplementationUnitTest(self, func, file):
      """Overrriden from TypeHandler."""
      code = """
  TEST_F(GLES2ImplementationTest, %(name)s) {
    GLuint ids[2] = { k%(types)sStartId, k%(types)sStartId + 1 };
    struct Cmds {
      cmds::%(name)sImmediate del;
      GLuint data[2];
    };
    Cmds expected;
    expected.del.Init(arraysize(ids), &ids[0]);
    expected.data[0] = k%(types)sStartId;
    expected.data[1] = k%(types)sStartId + 1;
    gl_->%(name)s(arraysize(ids), &ids[0]);
    EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
  }
  """
      file.Write(code % {
            'name': func.name,
            'types': func.GetInfo('resource_types'),
          })
function_tokens: def WriteGLES2ImplementationUnitTest ( self , func , file ) : code = """
  TEST_F(GLES2ImplementationTest, %(name)s) {
    GLuint ids[2] = { k%(types)sStartId, k%(types)sStartId + 1 };
    struct Cmds {
      cmds::%(name)sImmediate del;
      GLuint data[2];
    };
    Cmds expected;
    expected.del.Init(arraysize(ids), &ids[0]);
    expected.data[0] = k%(types)sStartId;
    expected.data[1] = k%(types)sStartId + 1;
    gl_->%(name)s(arraysize(ids), &ids[0]);
    EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
  }
  """ file . Write ( code % { 'name' : func . name , 'types' : func . GetInfo ( 'resource_types' ) , } )