mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-24 21:49:24 +00:00
Refactoring towards interface based config
This commit is contained in:
parent
10fa0593db
commit
e1459955f1
17 changed files with 754 additions and 245 deletions
|
@ -38,7 +38,7 @@ namespace Catch {
|
|||
return generators && generators->moveNext();
|
||||
}
|
||||
|
||||
virtual const IConfig* getConfig() const {
|
||||
virtual Ptr<IConfig> getConfig() const {
|
||||
return m_config;
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ namespace Catch {
|
|||
virtual void setRunner( IRunner* runner ) {
|
||||
m_runner = runner;
|
||||
}
|
||||
virtual void setConfig( const IConfig* config ) {
|
||||
virtual void setConfig( Ptr<IConfig> const& config ) {
|
||||
m_config = config;
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ namespace Catch {
|
|||
private:
|
||||
IRunner* m_runner;
|
||||
IResultCapture* m_resultCapture;
|
||||
const IConfig* m_config;
|
||||
Ptr<IConfig> m_config;
|
||||
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue