• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonbathyscaphephpgamewindowsguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

New lambda-based xUnit-style unit-testing framework for C++.


Commit MetaInfo

Revisãoe584478f95d8c7991bc399df15ea16e5bceb93d8 (tree)
Hora2020-01-23 20:12:49
AutorKaz Nishimura <kazssym@linu...>
CommiterKaz Nishimura

Mensagem de Log

Add member functions to class 'TestContext'

Mudança Sumário

Diff

diff -r 1db9bba546b9 -r e584478f95d8 libcppunitx/bits/cppunitx/driver.h
--- a/libcppunitx/bits/cppunitx/driver.h Thu Jan 23 20:06:23 2020 +0900
+++ b/libcppunitx/bits/cppunitx/driver.h Thu Jan 23 20:12:49 2020 +0900
@@ -33,6 +33,21 @@
3333
3434 public:
3535 virtual ~TestContext();
36+
37+ public:
38+ // The terms install/uninstall might not fit well for these functions.
39+
40+ virtual void installTest(const Test *test);
41+
42+ virtual void uninstallTest(const Test *test);
43+
44+ virtual void installBefore(const Before *before);
45+
46+ virtual void uninstallBefore(const Before *before);
47+
48+ virtual void installAfter(const After *after);
49+
50+ virtual void uninstallAfter(const After *after);
3651 };
3752
3853 /// Test driver.
diff -r 1db9bba546b9 -r e584478f95d8 libcppunitx/driver.cpp
--- a/libcppunitx/driver.cpp Thu Jan 23 20:06:23 2020 +0900
+++ b/libcppunitx/driver.cpp Thu Jan 23 20:12:49 2020 +0900
@@ -49,6 +49,30 @@
4949 {
5050 }
5151
52+void TestContext::installTest(const Test *const)
53+{
54+}
55+
56+void TestContext::uninstallTest(const Test *const)
57+{
58+}
59+
60+void TestContext::installBefore(const Before *const)
61+{
62+}
63+
64+void TestContext::uninstallBefore(const Before *const)
65+{
66+}
67+
68+void TestContext::installAfter(const After *const)
69+{
70+}
71+
72+void TestContext::uninstallAfter(const After *const)
73+{
74+}
75+
5276 // Class 'TestDriver' implementation.
5377
5478 shared_ptr<TestDriver> TestDriver::getInstance()