Namespaces | Functions
annotation_test_util.cc File Reference
#include <google/protobuf/compiler/annotation_test_util.h>
#include <memory>
#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/command_line_interface.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/testing/file.h>
#include <google/protobuf/testing/googletest.h>
#include <gtest/gtest.h>
Include dependency graph for annotation_test_util.cc:

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::compiler
 
 google::protobuf::compiler::annotation_test_util
 

Functions

void google::protobuf::compiler::annotation_test_util::AddFile (const std::string &filename, const std::string &data)
 
bool google::protobuf::compiler::annotation_test_util::AnnotationMatchesSubstring (const std::string &file_content, const GeneratedCodeInfo::Annotation *annotation, const std::string &expected_text)
 
bool google::protobuf::compiler::annotation_test_util::AtLeastOneAnnotationMatchesSubstring (const std::string &file_content, const std::vector< const GeneratedCodeInfo::Annotation * > &annotations, const std::string &expected_text)
 
bool google::protobuf::compiler::annotation_test_util::DecodeMetadata (const std::string &path, GeneratedCodeInfo *info)
 
const GeneratedCodeInfo::Annotationgoogle::protobuf::compiler::annotation_test_util::FindAnnotationOnPath (const GeneratedCodeInfo &info, const std::string &source_file, const std::vector< int > &path)
 
void google::protobuf::compiler::annotation_test_util::FindAnnotationsOnPath (const GeneratedCodeInfo &info, const std::string &source_file, const std::vector< int > &path, std::vector< const GeneratedCodeInfo::Annotation * > *annotations)
 
bool google::protobuf::compiler::annotation_test_util::RunProtoCompiler (const std::string &filename, const std::string &plugin_specific_args, CommandLineInterface *cli, FileDescriptorProto *file)
 

Variable Documentation

◆ file_

FileDescriptorProto* file_
private

Definition at line 68 of file annotation_test_util.cc.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:02