1 #ifndef _tests_scorpion_context_h
2 #define _tests_scorpion_context_h
4 #include <cppunit/extensions/HelperMacros.h>
10 class Context
: public CPPUNIT_NS::TestFixture
12 CPPUNIT_TEST_SUITE( Context
);
13 CPPUNIT_TEST( tryCreateInstance
);
14 CPPUNIT_TEST( tryCopy
);
15 CPPUNIT_TEST( tryAssign
);
16 CPPUNIT_TEST( tryAssign
);
17 CPPUNIT_TEST( trySetCertificateName
);
18 CPPUNIT_TEST( trySetCertificateNameAndCopy
);
19 CPPUNIT_TEST( trySetCertificateNameAndAssign
);
20 CPPUNIT_TEST( trySetCertificateNameAndSwap
);
21 CPPUNIT_TEST( tryGetContext
);
22 CPPUNIT_TEST( tryGetContextAndCopy
);
23 CPPUNIT_TEST( tryGetContextAndCopyOnWrite01
);
24 CPPUNIT_TEST( tryGetContextAndCopyOnWrite02
);
25 CPPUNIT_TEST_SUITE_END();
29 virtual void tearDown();
32 void tryCreateInstance();
35 void trySetCertificateName();
36 void trySetCertificateNameAndCopy();
37 void trySetCertificateNameAndAssign();
38 void trySetCertificateNameAndSwap();
40 void tryGetContextAndCopy();
41 void tryGetContextAndCopyOnWrite01();
42 void tryGetContextAndCopyOnWrite02();