mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-08 23:29:53 +01:00
Migrated ITestCase to std::shared_ptr
This commit is contained in:
parent
0844d6e867
commit
44cccde8b9
@ -16,12 +16,13 @@ namespace Catch {
|
|||||||
|
|
||||||
class TestSpec;
|
class TestSpec;
|
||||||
|
|
||||||
struct ITestCase : IShared {
|
struct ITestCase {
|
||||||
virtual void invoke () const = 0;
|
virtual void invoke () const = 0;
|
||||||
protected:
|
|
||||||
virtual ~ITestCase();
|
virtual ~ITestCase();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using ITestCasePtr = std::shared_ptr<ITestCase>;
|
||||||
|
|
||||||
class TestCase;
|
class TestCase;
|
||||||
struct IConfig;
|
struct IConfig;
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ namespace Catch {
|
|||||||
bool operator < ( TestCase const& other ) const;
|
bool operator < ( TestCase const& other ) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ptr<ITestCase> test;
|
std::shared_ptr<ITestCase> test;
|
||||||
};
|
};
|
||||||
|
|
||||||
TestCase makeTestCase( ITestCase* testCase,
|
TestCase makeTestCase( ITestCase* testCase,
|
||||||
|
Loading…
Reference in New Issue
Block a user