ResultCapture -> RunContext

This commit is contained in:
Phil Nash committed 2015-11-19 17:45:56 +00:00
1 parent b77b45a390
commit 73968f29a5
10 files changed
+24 -24

No files matched your search

+4 -4
View File
@@ -52,7 +52,7 @@ namespace Catch {
///////////////////////////////////////////////////////////////////////////
class RunContext : public IResultCapture, public IRunner {
class RunContext : public IRunContext, public IRunner {
RunContext( RunContext const& );
void operator =( RunContext const& );
@@ -119,7 +119,7 @@ namespace Catch {
return m_config;
}
private: // IResultCapture
private: // IRunContext
virtual void assertionEnded( AssertionResult const& result ) {
@@ -337,8 +337,8 @@ namespace Catch {
std::vector<MessageInfo> m_messages;
};
IResultCapture& getResultCapture() {
if( IResultCapture* capture = getCurrentContext().getResultCapture() )
IRunContext& getCurrentRunContext() {
if( IRunContext* capture = getCurrentContext().getCurrentRunContext() )
return *capture;
else
throw std::logic_error( "No result capture instance" );