#include <mock_code_generator.h>
Public Member Functions | |
virtual bool | Generate (const FileDescriptor *file, const std::string ¶meter, GeneratorContext *context, std::string *error) const |
MockCodeGenerator (const std::string &name) | |
virtual | ~MockCodeGenerator () |
![]() | |
CodeGenerator () | |
virtual bool | GenerateAll (const std::vector< const FileDescriptor * > &files, const std::string ¶meter, GeneratorContext *generator_context, std::string *error) const |
virtual bool | HasGenerateAll () const |
virtual | ~CodeGenerator () |
Static Public Member Functions | |
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 ¶meter, 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 std::string &file) |
Static Private Member Functions | |
static std::string | GetOutputFileContent (const std::string &generator_name, const std::string ¶meter, const FileDescriptor *file, GeneratorContext *context) |
static std::string | GetOutputFileContent (const std::string &generator_name, const std::string ¶meter, const std::string &file, const std::string &parsed_file_list, const std::string &first_message_name) |
Private Attributes | |
std::string | name_ |
Definition at line 75 of file mock_code_generator.h.
google::protobuf::compiler::MockCodeGenerator::MockCodeGenerator | ( | const std::string & | name | ) |
Definition at line 86 of file mock_code_generator.cc.
|
virtual |
Definition at line 88 of file mock_code_generator.cc.
|
static |
Definition at line 151 of file mock_code_generator.cc.
|
static |
Definition at line 90 of file mock_code_generator.cc.
|
virtual |
Implements google::protobuf::compiler::CodeGenerator.
Definition at line 173 of file mock_code_generator.cc.
|
staticprivate |
Definition at line 307 of file mock_code_generator.cc.
|
staticprivate |
Definition at line 318 of file mock_code_generator.cc.
|
static |
Definition at line 297 of file mock_code_generator.cc.
|
static |
Definition at line 302 of file mock_code_generator.cc.
|
private |
Definition at line 114 of file mock_code_generator.h.