Use template for UnitTest

This commit is contained in:
Vinnie Falco
2013-07-13 04:48:53 -07:00
parent 4a00e8feed
commit a1289eb502
13 changed files with 148 additions and 139 deletions

View File

@@ -251,12 +251,11 @@ void SpinLock::enter() const noexcept
}
//==============================================================================
#if BEAST_UNIT_TESTS
class AtomicTests : public UnitTest
class AtomicTests : public UnitTestType <AtomicTests>
{
public:
AtomicTests() : UnitTest ("Atomics") {}
AtomicTests() : UnitTestType <AtomicTests> ("Atomic") {}
void runTest()
{
@@ -351,6 +350,6 @@ public:
};
};
static AtomicTests atomicUnitTests;
#if BEAST_UNIT_TESTS
template class UnitTestType <AtomicTests>;
#endif