Update of /cvsroot/mockpp/mockpp/mockpp/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14711/mockpp/tests
Modified Files:
ChainableMockObjectPolymorphism_test.cpp
VisitableMockMethod_test.cpp
Log Message:
g++ 4.0 warnings
Index: ChainableMockObjectPolymorphism_test.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/ChainableMockObjectPolymorphism_test.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ChainableMockObjectPolymorphism_test.cpp 2 Oct 2005 09:35:23 -0000 1.4
+++ ChainableMockObjectPolymorphism_test.cpp 19 Oct 2005 20:14:27 -0000 1.5
@@ -74,6 +74,9 @@
{
public:
+ virtual ~Parameter()
+ {}
+
virtual void doSomething() = 0;
};
@@ -82,6 +85,9 @@
{
public:
+ virtual ~Visitor()
+ {}
+
virtual void visit1( const Parameter & ) = 0;
virtual void visit2( const Parameter &, int ) = 0;
virtual void visit3( const Parameter &, const Parameter &, const Parameter & ) = 0;
Index: VisitableMockMethod_test.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/VisitableMockMethod_test.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- VisitableMockMethod_test.cpp 17 Oct 2005 19:15:09 -0000 1.3
+++ VisitableMockMethod_test.cpp 19 Oct 2005 20:14:27 -0000 1.4
@@ -48,6 +48,7 @@
#include <cppunit/extensions/HelperMacros.h>
+
namespace { // anon
@@ -58,6 +59,7 @@
CPPUNIT_TEST_SUITE( VisitableMockMethod_test );
// CPPUNIT_TEST( test_parameter_0 );
+// CPPUNIT_TEST( test_parameter_0V );
CPPUNIT_TEST( test_base );
CPPUNIT_TEST_SUITE_END();
@@ -66,6 +68,7 @@
void test_base();
// void test_parameter_0();
+// void test_parameter_0V();
};
@@ -89,7 +92,7 @@
return visitable_mocker.forward();
}
- void visitable()
+ void visitableV()
{
visitablev_mocker.forward();
}
@@ -105,12 +108,12 @@
/*
mockpp::VisitableMockMethod0<int>::ChainerFor chain(mcm.Visitable_mocker);
- MOCKPP_ASSERT_TRUE(mcm.Visitable(12) == 21);
- MOCKPP_ASSERT_TRUE(mcm.Visitable(34) == 43);
+ MOCKPP_ASSERT_TRUE(mcm.Visitable() == 21);
+ MOCKPP_ASSERT_TRUE(mcm.Visitable() == 43);
try
{
- mcm.Visitable(56);ct
+ mcm.Visitable(56);
MOCKPP_ASSERT_TRUE_MESSAGE(MOCKPP_PCHAR("should have thrown"), false);
}
catch(mockpp::AssertionFailedError &ex)
|