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

#include <conformance_test.h>

Inheritance diagram for google::protobuf::ForkPipeRunner:
Inheritance graph
[legend]

Public Member Functions

 ForkPipeRunner (const std::string &executable)
 
 ForkPipeRunner (const std::string &executable)
 
 ForkPipeRunner (const std::string &executable, const std::vector< std::string > &executable_args)
 
 ForkPipeRunner (const std::string &executable, const std::vector< string > &executable_args)
 
void RunTest (const std::string &test_name, const std::string &request, std::string *response)
 
void RunTest (const std::string &test_name, const std::string &request, std::string *response)
 
virtual ~ForkPipeRunner ()
 
virtual ~ForkPipeRunner ()
 
- Public Member Functions inherited from google::protobuf::ConformanceTestRunner
virtual ~ConformanceTestRunner ()
 
virtual ~ConformanceTestRunner ()
 

Static Public Member Functions

static int Run (int argc, char *argv[], const std::vector< ConformanceTestSuite * > &suites)
 
static int Run (int argc, char *argv[], const std::vector< ConformanceTestSuite * > &suites)
 

Private Member Functions

void CheckedRead (int fd, void *buf, size_t len)
 
void CheckedRead (int fd, void *buf, size_t len)
 
void CheckedWrite (int fd, const void *buf, size_t len)
 
void CheckedWrite (int fd, const void *buf, size_t len)
 
void SpawnTestProgram ()
 
void SpawnTestProgram ()
 
bool TryRead (int fd, void *buf, size_t len)
 
bool TryRead (int fd, void *buf, size_t len)
 

Private Attributes

pid_t child_pid_
 
std::string current_test_name_
 
std::string executable_
 
const std::vector< std::string > executable_args_
 
const std::vector< string > executable_args_
 
int read_fd_
 
int write_fd_
 

Detailed Description

Definition at line 86 of file bloaty/third_party/protobuf/conformance/conformance_test.h.

Constructor & Destructor Documentation

◆ ForkPipeRunner() [1/4]

google::protobuf::ForkPipeRunner::ForkPipeRunner ( const std::string &  executable,
const std::vector< string > &  executable_args 
)
inline

◆ ForkPipeRunner() [2/4]

google::protobuf::ForkPipeRunner::ForkPipeRunner ( const std::string &  executable)
inlineexplicit

◆ ~ForkPipeRunner() [1/2]

virtual google::protobuf::ForkPipeRunner::~ForkPipeRunner ( )
inlinevirtual

◆ ForkPipeRunner() [3/4]

google::protobuf::ForkPipeRunner::ForkPipeRunner ( const std::string &  executable,
const std::vector< std::string > &  executable_args 
)
inline

Definition at line 90 of file protobuf/conformance/conformance_test.h.

◆ ForkPipeRunner() [4/4]

google::protobuf::ForkPipeRunner::ForkPipeRunner ( const std::string &  executable)
inlineexplicit

Definition at line 96 of file protobuf/conformance/conformance_test.h.

◆ ~ForkPipeRunner() [2/2]

virtual google::protobuf::ForkPipeRunner::~ForkPipeRunner ( )
inlinevirtual

Definition at line 99 of file protobuf/conformance/conformance_test.h.

Member Function Documentation

◆ CheckedRead() [1/2]

void google::protobuf::ForkPipeRunner::CheckedRead ( int  fd,
void *  buf,
size_t  len 
)
private

◆ CheckedRead() [2/2]

void google::protobuf::ForkPipeRunner::CheckedRead ( int  fd,
void *  buf,
size_t  len 
)
private

◆ CheckedWrite() [1/2]

void google::protobuf::ForkPipeRunner::CheckedWrite ( int  fd,
const void *  buf,
size_t  len 
)
private

◆ CheckedWrite() [2/2]

void google::protobuf::ForkPipeRunner::CheckedWrite ( int  fd,
const void *  buf,
size_t  len 
)
private

◆ Run() [1/2]

static int google::protobuf::ForkPipeRunner::Run ( int  argc,
char *  argv[],
const std::vector< ConformanceTestSuite * > &  suites 
)
static

◆ Run() [2/2]

int google::protobuf::ForkPipeRunner::Run ( int  argc,
char *  argv[],
const std::vector< ConformanceTestSuite * > &  suites 
)
static

◆ RunTest() [1/2]

void google::protobuf::ForkPipeRunner::RunTest ( const std::string &  test_name,
const std::string &  request,
std::string *  response 
)
virtual

◆ RunTest() [2/2]

void google::protobuf::ForkPipeRunner::RunTest ( const std::string &  test_name,
const std::string &  request,
std::string *  response 
)
virtual

◆ SpawnTestProgram() [1/2]

void google::protobuf::ForkPipeRunner::SpawnTestProgram ( )
private

◆ SpawnTestProgram() [2/2]

void google::protobuf::ForkPipeRunner::SpawnTestProgram ( )
private

◆ TryRead() [1/2]

bool google::protobuf::ForkPipeRunner::TryRead ( int  fd,
void *  buf,
size_t  len 
)
private

◆ TryRead() [2/2]

bool google::protobuf::ForkPipeRunner::TryRead ( int  fd,
void *  buf,
size_t  len 
)
private

Member Data Documentation

◆ child_pid_

pid_t google::protobuf::ForkPipeRunner::child_pid_
private

◆ current_test_name_

std::string google::protobuf::ForkPipeRunner::current_test_name_
private

◆ executable_

std::string google::protobuf::ForkPipeRunner::executable_
private

◆ executable_args_ [1/2]

const std::vector<std::string> google::protobuf::ForkPipeRunner::executable_args_
private

Definition at line 116 of file protobuf/conformance/conformance_test.h.

◆ executable_args_ [2/2]

const std::vector<string> google::protobuf::ForkPipeRunner::executable_args_
private

◆ read_fd_

int google::protobuf::ForkPipeRunner::read_fd_
private

◆ write_fd_

int google::protobuf::ForkPipeRunner::write_fd_
private

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


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