| Index: base/test/test_suite.h
|
| diff --git a/base/test/test_suite.h b/base/test/test_suite.h
|
| index 590a18cb750db37bacbe9896af435ea8fa1815e7..7980ffecb448c3c2310f4808e5b220c5ba42f896 100644
|
| --- a/base/test/test_suite.h
|
| +++ b/base/test/test_suite.h
|
| @@ -23,6 +23,8 @@ class TestInfo;
|
|
|
| namespace base {
|
|
|
| +class XmlUnitTestResultPrinter;
|
| +
|
| // Instantiates TestSuite, runs it and returns exit code.
|
| int RunUnitTestsUsingBaseTestSuite(int argc, char **argv);
|
|
|
| @@ -56,6 +58,14 @@ class TestSuite {
|
| // terminates the process.
|
| static void UnitTestAssertHandler(const std::string& str);
|
|
|
| + // Catch messages with LOG_FATAL severity and report them to the xml.
|
| + // Separate function is used, because this handler has file/line information.
|
| + static bool UnitTestLogMessageHandler(int severity,
|
| + const char* file,
|
| + int line,
|
| + size_t message_start,
|
| + const std::string& str);
|
| +
|
| // Disable crash dialogs so that it doesn't gum up the buildbot
|
| virtual void SuppressErrorDialogs();
|
|
|
| @@ -84,6 +94,8 @@ class TestSuite {
|
|
|
| bool created_feature_list_;
|
|
|
| + XmlUnitTestResultPrinter* printer_ = nullptr;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TestSuite);
|
| };
|
|
|
|
|