Chromium Code Reviews| Index: base/test/gtest_xml_unittest_result_printer.h |
| diff --git a/base/test/gtest_xml_unittest_result_printer.h b/base/test/gtest_xml_unittest_result_printer.h |
| index cce5e88023a045f0de48486ee35de995a980d3df..4ca17192437a8bc55ebc3b19cd0984d6d56a2516 100644 |
| --- a/base/test/gtest_xml_unittest_result_printer.h |
| +++ b/base/test/gtest_xml_unittest_result_printer.h |
| @@ -46,6 +46,13 @@ class XmlUnitTestResultPrinter : public testing::EmptyTestEventListener { |
| FILE* output_file_; |
| + // Some tests may contain broken EXPECT with a large message inside a loop |
| + // with several thousands iterations and produce huge output (several |
| + // gigabytes). Limit number of serialized test result parts to prevent it. |
| + // Zero value disables test part results. |
| + // Negative value disables limit. |
| + int test_part_results_limit_; |
|
Paweł Hajdan Jr.
2017/05/08 17:38:03
Is it worth to add a member variable just for this
alex-ac
2017/05/12 12:07:44
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(XmlUnitTestResultPrinter); |
| }; |