Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
google::protobuf::compiler::MockCodeGenerator Class Reference

#include <mock_code_generator.h>

Inheritance diagram for google::protobuf::compiler::MockCodeGenerator:
Inheritance graph
[legend]

Public Member Functions

virtual bool Generate (const FileDescriptor *file, const std::string &parameter, GeneratorContext *context, std::string *error) const
 
bool Generate (const FileDescriptor *file, const std::string &parameter, GeneratorContext *context, std::string *error) const override
 
uint64_t GetSupportedFeatures () const override
 
 MockCodeGenerator (const std::string &name)
 
 MockCodeGenerator (const std::string &name)
 
void SuppressFeatures (uint64_t features)
 
virtual ~MockCodeGenerator ()
 
virtual ~MockCodeGenerator ()
 
- Public Member Functions inherited from google::protobuf::compiler::CodeGenerator
 CodeGenerator ()
 
 CodeGenerator ()
 
virtual bool GenerateAll (const std::vector< const FileDescriptor * > &files, const std::string &parameter, GeneratorContext *generator_context, std::string *error) const
 
virtual bool GenerateAll (const std::vector< const FileDescriptor * > &files, const std::string &parameter, GeneratorContext *generator_context, std::string *error) const
 
virtual bool HasGenerateAll () const
 
virtual bool HasGenerateAll () const
 
virtual ~CodeGenerator ()
 
virtual ~CodeGenerator ()
 

Static Public Member Functions

static void CheckGeneratedAnnotations (const std::string &name, const std::string &file, const std::string &output_directory)
 
static void CheckGeneratedAnnotations (const std::string &name, const std::string &file, const std::string &output_directory)
 
static void ExpectGenerated (const std::string &name, const std::string &parameter, const std::string &insertions, const std::string &file, const std::string &first_message_name, const std::string &parsed_file_list, const std::string &output_directory)
 
static void ExpectGenerated (const std::string &name, const std::string &parameter, const std::string &insertions, const std::string &file, const std::string &first_message_name, const std::string &parsed_file_list, const std::string &output_directory)
 
static std::string GetOutputFileName (const std::string &generator_name, const FileDescriptor *file)
 
static std::string GetOutputFileName (const std::string &generator_name, const FileDescriptor *file)
 
static std::string GetOutputFileName (const std::string &generator_name, const std::string &file)
 
static std::string GetOutputFileName (const std::string &generator_name, const std::string &file)
 

Static Private Member Functions

static std::string GetOutputFileContent (const std::string &generator_name, const std::string &parameter, const FileDescriptor *file, GeneratorContext *context)
 
static std::string GetOutputFileContent (const std::string &generator_name, const std::string &parameter, const FileDescriptor *file, GeneratorContext *context)
 
static std::string GetOutputFileContent (const std::string &generator_name, const std::string &parameter, const std::string &file, const std::string &parsed_file_list, const std::string &first_message_name)
 
static std::string GetOutputFileContent (const std::string &generator_name, const std::string &parameter, const std::string &file, const std::string &parsed_file_list, const std::string &first_message_name)
 

Private Attributes

std::string name_
 
uint64_t suppressed_features_ = 0
 

Additional Inherited Members

- Public Types inherited from google::protobuf::compiler::CodeGenerator
enum  Feature { FEATURE_PROTO3_OPTIONAL = 1 }
 

Detailed Description

Definition at line 75 of file bloaty/third_party/protobuf/src/google/protobuf/compiler/mock_code_generator.h.

Constructor & Destructor Documentation

◆ MockCodeGenerator() [1/2]

google::protobuf::compiler::MockCodeGenerator::MockCodeGenerator ( const std::string &  name)

◆ ~MockCodeGenerator() [1/2]

google::protobuf::compiler::MockCodeGenerator::~MockCodeGenerator ( )
virtual

◆ MockCodeGenerator() [2/2]

google::protobuf::compiler::MockCodeGenerator::MockCodeGenerator ( const std::string &  name)

◆ ~MockCodeGenerator() [2/2]

virtual google::protobuf::compiler::MockCodeGenerator::~MockCodeGenerator ( )
virtual

Member Function Documentation

◆ CheckGeneratedAnnotations() [1/2]

void google::protobuf::compiler::MockCodeGenerator::CheckGeneratedAnnotations ( const std::string &  name,
const std::string &  file,
const std::string &  output_directory 
)
static

◆ CheckGeneratedAnnotations() [2/2]

static void google::protobuf::compiler::MockCodeGenerator::CheckGeneratedAnnotations ( const std::string &  name,
const std::string &  file,
const std::string &  output_directory 
)
static

◆ ExpectGenerated() [1/2]

void google::protobuf::compiler::MockCodeGenerator::ExpectGenerated ( const std::string &  name,
const std::string &  parameter,
const std::string &  insertions,
const std::string &  file,
const std::string &  first_message_name,
const std::string &  parsed_file_list,
const std::string &  output_directory 
)
static

◆ ExpectGenerated() [2/2]

static void google::protobuf::compiler::MockCodeGenerator::ExpectGenerated ( const std::string &  name,
const std::string &  parameter,
const std::string &  insertions,
const std::string &  file,
const std::string &  first_message_name,
const std::string &  parsed_file_list,
const std::string &  output_directory 
)
static

◆ Generate() [1/2]

bool google::protobuf::compiler::MockCodeGenerator::Generate ( const FileDescriptor file,
const std::string &  parameter,
GeneratorContext context,
std::string *  error 
) const
virtual

◆ Generate() [2/2]

bool google::protobuf::compiler::MockCodeGenerator::Generate ( const FileDescriptor file,
const std::string &  parameter,
GeneratorContext context,
std::string *  error 
) const
overridevirtual

◆ GetOutputFileContent() [1/4]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileContent ( const std::string &  generator_name,
const std::string &  parameter,
const FileDescriptor file,
GeneratorContext context 
)
staticprivate

◆ GetOutputFileContent() [2/4]

static std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileContent ( const std::string &  generator_name,
const std::string &  parameter,
const FileDescriptor file,
GeneratorContext context 
)
staticprivate

◆ GetOutputFileContent() [3/4]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileContent ( const std::string &  generator_name,
const std::string &  parameter,
const std::string &  file,
const std::string &  parsed_file_list,
const std::string &  first_message_name 
)
staticprivate

◆ GetOutputFileContent() [4/4]

static std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileContent ( const std::string &  generator_name,
const std::string &  parameter,
const std::string &  file,
const std::string &  parsed_file_list,
const std::string &  first_message_name 
)
staticprivate

◆ GetOutputFileName() [1/4]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileName ( const std::string &  generator_name,
const FileDescriptor file 
)
static

◆ GetOutputFileName() [2/4]

static std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileName ( const std::string &  generator_name,
const FileDescriptor file 
)
static

◆ GetOutputFileName() [3/4]

std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileName ( const std::string &  generator_name,
const std::string &  file 
)
static

◆ GetOutputFileName() [4/4]

static std::string google::protobuf::compiler::MockCodeGenerator::GetOutputFileName ( const std::string &  generator_name,
const std::string &  file 
)
static

◆ GetSupportedFeatures()

uint64_t google::protobuf::compiler::MockCodeGenerator::GetSupportedFeatures ( ) const
overridevirtual

◆ SuppressFeatures()

void google::protobuf::compiler::MockCodeGenerator::SuppressFeatures ( uint64_t  features)

Member Data Documentation

◆ name_

std::string google::protobuf::compiler::MockCodeGenerator::name_
private

◆ suppressed_features_

uint64_t google::protobuf::compiler::MockCodeGenerator::suppressed_features_ = 0
private

The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:22