From b81a1b787144e1d9473a12a711cdab9fa7009f9f Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Mon, 27 Apr 2015 06:00:14 -0700 Subject: [PATCH] Add getMessage() to tcu::ResultCollector Change-Id: I11651091fe609c663b6496c1f1e476ef85a8a4df --- framework/common/tcuResultCollector.hpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/framework/common/tcuResultCollector.hpp b/framework/common/tcuResultCollector.hpp index d4af499..7fb8ed2 100644 --- a/framework/common/tcuResultCollector.hpp +++ b/framework/common/tcuResultCollector.hpp @@ -43,24 +43,25 @@ class TestContext; class ResultCollector { public: - ResultCollector (void); - ResultCollector (TestLog& log, const std::string& prefix = ""); + ResultCollector (void); + ResultCollector (TestLog& log, const std::string& prefix = ""); - qpTestResult getResult (void) const { return m_result; } + qpTestResult getResult (void) const { return m_result; } + const std::string getMessage (void) const { return m_message; } - void fail (const std::string& msg); - bool check (bool condition, const std::string& msg); + void fail (const std::string& msg); + bool check (bool condition, const std::string& msg); - void addResult (qpTestResult result, const std::string& msg); - bool checkResult (bool condition, qpTestResult result, const std::string& msg); + void addResult (qpTestResult result, const std::string& msg); + bool checkResult (bool condition, qpTestResult result, const std::string& msg); - void setTestContextResult (TestContext& testCtx); + void setTestContextResult (TestContext& testCtx); private: - TestLog* m_log; - std::string m_prefix; - qpTestResult m_result; - std::string m_message; + TestLog* const m_log; + const std::string m_prefix; + qpTestResult m_result; + std::string m_message; } DE_WARN_UNUSED_TYPE; } // tcu -- 2.7.4