aboutsummaryrefslogtreecommitdiffstats
path: root/tests/UnitTest++/src/AssertException.cpp
diff options
context:
space:
mode:
authorAdam Domurad <adomurad@redhat.com>2012-11-21 12:37:38 -0500
committerAdam Domurad <adomurad@redhat.com>2012-11-21 12:37:38 -0500
commit47e24eece15121c917a30166037cbb072bb6a443 (patch)
treefe7730603d16164711ff8db7b9dea283888aae90 /tests/UnitTest++/src/AssertException.cpp
parent86bfc5f740524bdd7f341f9e1b90e39369ad7e8f (diff)
Add UnitTest++ source code into ITW, without integration.
Diffstat (limited to 'tests/UnitTest++/src/AssertException.cpp')
-rw-r--r--tests/UnitTest++/src/AssertException.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/UnitTest++/src/AssertException.cpp b/tests/UnitTest++/src/AssertException.cpp
new file mode 100644
index 0000000..63f556e
--- /dev/null
+++ b/tests/UnitTest++/src/AssertException.cpp
@@ -0,0 +1,34 @@
+#include "AssertException.h"
+#include <cstring>
+
+namespace UnitTest {
+
+AssertException::AssertException(char const* description, char const* filename, int lineNumber)
+ : m_lineNumber(lineNumber)
+{
+ using namespace std;
+
+ strcpy(m_description, description);
+ strcpy(m_filename, filename);
+}
+
+AssertException::~AssertException() throw()
+{
+}
+
+char const* AssertException::what() const throw()
+{
+ return m_description;
+}
+
+char const* AssertException::Filename() const
+{
+ return m_filename;
+}
+
+int AssertException::LineNumber() const
+{
+ return m_lineNumber;
+}
+
+}