1*2f083884Ss.makeev_local #include "UnitTest++/UnitTestPP.h" 2*2f083884Ss.makeev_local #include "UnitTest++/CurrentTest.h" 3*2f083884Ss.makeev_local #include "ScopedCurrentTest.h" 4*2f083884Ss.makeev_local 5*2f083884Ss.makeev_local namespace 6*2f083884Ss.makeev_local { 7*2f083884Ss.makeev_local TEST(CanSetandGetDetails)8*2f083884Ss.makeev_localTEST(CanSetandGetDetails) 9*2f083884Ss.makeev_local { 10*2f083884Ss.makeev_local bool ok = false; 11*2f083884Ss.makeev_local { 12*2f083884Ss.makeev_local ScopedCurrentTest scopedTest; 13*2f083884Ss.makeev_local 14*2f083884Ss.makeev_local const UnitTest::TestDetails* details = reinterpret_cast< const UnitTest::TestDetails* >(12345); 15*2f083884Ss.makeev_local UnitTest::CurrentTest::Details() = details; 16*2f083884Ss.makeev_local 17*2f083884Ss.makeev_local ok = (UnitTest::CurrentTest::Details() == details); 18*2f083884Ss.makeev_local } 19*2f083884Ss.makeev_local 20*2f083884Ss.makeev_local CHECK(ok); 21*2f083884Ss.makeev_local } 22*2f083884Ss.makeev_local TEST(CanSetAndGetResults)23*2f083884Ss.makeev_localTEST(CanSetAndGetResults) 24*2f083884Ss.makeev_local { 25*2f083884Ss.makeev_local bool ok = false; 26*2f083884Ss.makeev_local { 27*2f083884Ss.makeev_local ScopedCurrentTest scopedTest; 28*2f083884Ss.makeev_local 29*2f083884Ss.makeev_local UnitTest::TestResults results; 30*2f083884Ss.makeev_local UnitTest::CurrentTest::Results() = &results; 31*2f083884Ss.makeev_local 32*2f083884Ss.makeev_local ok = (UnitTest::CurrentTest::Results() == &results); 33*2f083884Ss.makeev_local } 34*2f083884Ss.makeev_local 35*2f083884Ss.makeev_local CHECK(ok); 36*2f083884Ss.makeev_local } 37*2f083884Ss.makeev_local 38*2f083884Ss.makeev_local } 39