Functions | Variables
golden_file_test.cc File Reference
#include <fstream>
#include <sstream>
#include <gtest/gtest.h>
#include "absl/flags/flag.h"
#include "test/core/util/test_config.h"
#include "test/cpp/util/test_config.h"
Include dependency graph for golden_file_test.cc:

Go to the source code of this file.

Functions

 ABSL_FLAG (std::string, generated_file_path, "", "path to the directory containing generated files compiler_test.grpc.pb.h " "and compiler_test_mock.grpc.pb.h")
 
int main (int argc, char **argv)
 
void run_test (const std::basic_string< char > &generated_file, const std::basic_string< char > &golden_file)
 
 TEST (GoldenFileTest, TestGeneratedFile)
 
 TEST (GoldenMockFileTest, TestGeneratedMockFile)
 

Variables

const char kGoldenFilePath [] = "test/cpp/codegen/compiler_test_golden"
 
const char kMockGoldenFilePath [] = "test/cpp/codegen/compiler_test_mock_golden"
 

Function Documentation

◆ ABSL_FLAG()

ABSL_FLAG ( std::string  ,
generated_file_path  ,
""  ,
"path to the directory containing generated files compiler_test.grpc.pb.h " "and compiler_test_mock.grpc.pb.h"   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 66 of file golden_file_test.cc.

◆ run_test()

void run_test ( const std::basic_string< char > &  generated_file,
const std::basic_string< char > &  golden_file 
)

Definition at line 37 of file golden_file_test.cc.

◆ TEST() [1/2]

TEST ( GoldenFileTest  ,
TestGeneratedFile   
)

Definition at line 55 of file golden_file_test.cc.

◆ TEST() [2/2]

TEST ( GoldenMockFileTest  ,
TestGeneratedMockFile   
)

Definition at line 60 of file golden_file_test.cc.

Variable Documentation

◆ kGoldenFilePath

const char kGoldenFilePath[] = "test/cpp/codegen/compiler_test_golden"

Definition at line 34 of file golden_file_test.cc.

◆ kMockGoldenFilePath

const char kMockGoldenFilePath[] = "test/cpp/codegen/compiler_test_mock_golden"

Definition at line 35 of file golden_file_test.cc.



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