Streamline includes in external interfaces

This commit is contained in:
Martin Hořeňovský 2017-08-29 16:44:02 +02:00
parent 4453fefb00
commit dd8e79c529
10 changed files with 11 additions and 7 deletions

View File

@ -13,6 +13,7 @@
#include "internal/catch_enforce.h"
#include "internal/catch_list.h"
#include "internal/catch_run_context.hpp"
#include "internal/catch_stream.h"
#include "internal/catch_test_spec.hpp"
#include "internal/catch_version.h"
#include "internal/catch_interfaces_reporter.h"

View File

@ -7,6 +7,7 @@
#include "catch_config.hpp"
#include "catch_enforce.h"
#include "catch_stream.h"
namespace Catch {

View File

@ -9,9 +9,7 @@
#define TWOBLUECUBES_CATCH_CONFIG_HPP_INCLUDED
#include "catch_test_spec_parser.hpp"
#include "catch_context.h"
#include "catch_interfaces_config.h"
#include "catch_stream.h"
#include <memory>
#include <vector>
@ -23,6 +21,8 @@
namespace Catch {
struct IStream;
struct ConfigData {
bool listTests = false;
bool listTags = false;

View File

@ -22,7 +22,7 @@ namespace Catch {
struct IContext
{
virtual ~IContext();
virtual ~IContext() = default;
virtual IResultCapture* getResultCapture() = 0;
virtual IRunner* getRunner() = 0;
@ -31,7 +31,7 @@ namespace Catch {
struct IMutableContext : IContext
{
virtual ~IMutableContext();
virtual ~IMutableContext() = default;
virtual void setResultCapture( IResultCapture* resultCapture ) = 0;
virtual void setRunner( IRunner* runner ) = 0;
virtual void setConfig( IConfigPtr const& config ) = 0;

View File

@ -46,7 +46,6 @@ namespace Catch {
CoutStream::~CoutStream() noexcept {}
DebugOutStream::~DebugOutStream() noexcept {}
StreamBufBase::~StreamBufBase() noexcept {}
IContext::~IContext() {}
IResultCapture::~IResultCapture() {}
ITestInvoker::~ITestInvoker() {}
ITestCaseRegistry::~ITestCaseRegistry() {}
@ -55,7 +54,6 @@ namespace Catch {
IExceptionTranslator::~IExceptionTranslator() {}
IExceptionTranslatorRegistry::~IExceptionTranslatorRegistry() {}
IRunner::~IRunner() {}
IMutableContext::~IMutableContext() {}
IConfig::~IConfig() {}
void Config::dummy() {}

View File

@ -11,7 +11,6 @@
#include "catch_section_info.h"
#include "catch_common.h"
#include "catch_config.hpp"
#include "catch_context.h"
#include "catch_totals.hpp"
#include "catch_test_case_info.h"
#include "catch_assertionresult.h"

View File

@ -12,6 +12,7 @@
#include "catch_interfaces_reporter.h"
#include "catch_interfaces_testcase.h"
#include "catch_stream.h"
#include "catch_text.h"
#include "catch_console_colour.hpp"

View File

@ -8,6 +8,7 @@
#include "catch_interfaces_registry_hub.h"
#include "catch_context.h"
#include "catch_test_case_registry_impl.hpp"
#include "catch_reporter_registry.hpp"
#include "catch_exception_translator_registry.h"

View File

@ -1,6 +1,7 @@
#include "catch_run_context.hpp"
#include "catch_context.h"
#include "catch_enforce.h"
#include "catch_stream.h"
#include <cassert>
#include <algorithm>

View File

@ -26,6 +26,8 @@
namespace Catch {
struct IMutableContext;
class StreamRedirect {
public: