#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"
Go to the source code of this file.
|
| 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) |
|
◆ 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 |
|
) |
| |
◆ run_test()
void run_test |
( |
const std::basic_string< char > & |
generated_file, |
|
|
const std::basic_string< char > & |
golden_file |
|
) |
| |
◆ TEST() [1/2]
TEST |
( |
GoldenFileTest |
, |
|
|
TestGeneratedFile |
|
|
) |
| |
◆ TEST() [2/2]
TEST |
( |
GoldenMockFileTest |
, |
|
|
TestGeneratedMockFile |
|
|
) |
| |
◆ kGoldenFilePath
const char kGoldenFilePath[] = "test/cpp/codegen/compiler_test_golden" |
◆ kMockGoldenFilePath
const char kMockGoldenFilePath[] = "test/cpp/codegen/compiler_test_mock_golden" |