ResultCapture -> RunContext
This commit is contained in:
1 parent
b77b45a390
commit
73968f29a5
10 files changed
+24
-24
No files matched your search
@@ -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" );
|
||||
|
||||
Reference in new issue
Block a user