Definition at line 3392 of file gtest.cc.
◆ XmlUnitTestResultPrinter()
testing::internal::XmlUnitTestResultPrinter::XmlUnitTestResultPrinter |
( |
const char * | output_file | ) |
|
|
explicit |
Definition at line 3470 of file gtest.cc.
3471 : output_file_(output_file) {
3472 if (output_file_.c_str() == NULL || output_file_.empty()) {
3473 GTEST_LOG_(FATAL) <<
"XML output file may not be null";
3474 }
3475}
#define GTEST_LOG_(severity)
◆ OnTestIterationEnd()
void testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd |
( |
const UnitTest & | unit_test, |
|
|
int | iteration ) |
|
virtual |
Reimplemented from testing::EmptyTestEventListener.
Definition at line 3478 of file gtest.cc.
3479 {
3480 FILE* xmlout = NULL;
3481 FilePath output_file(output_file_);
3482 FilePath output_dir(output_file.RemoveFileName());
3483
3484 if (output_dir.CreateDirectoriesRecursively()) {
3486 }
3487 if (xmlout == NULL) {
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499 GTEST_LOG_(FATAL) <<
"Unable to open file \"" << output_file_ <<
"\"";
3500 }
3501 std::stringstream stream;
3502 PrintXmlUnitTest(&stream, unit_test);
3504 fclose(xmlout);
3505}
FILE * FOpen(const char *path, const char *mode)
GTEST_API_ std::string StringStreamToString(::std::stringstream *stream)
The documentation for this class was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/src/gtest.cc