activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r752616 - in /activemq/activemq-cpp/trunk/src/test/decaf/lang: PointerTest.cpp PointerTest.h
Date Wed, 11 Mar 2009 21:05:23 GMT
Author: tabish
Date: Wed Mar 11 21:05:23 2009
New Revision: 752616

URL: http://svn.apache.org/viewvc?rev=752616&view=rev
Log:
Added another test case.

Modified:
    activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.cpp
    activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.h

Modified: activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.cpp?rev=752616&r1=752615&r2=752616&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.cpp Wed Mar 11 21:05:23 2009
@@ -411,3 +411,21 @@
     copy.reset( NULL );
     CPPUNIT_ASSERT( copy.get() == NULL );
 }
+
+////////////////////////////////////////////////////////////////////////////////
+TestClassBase* methodReturnRawPointer() {
+
+    return new TestClassA;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+Pointer<TestClassBase> methodReturnPointer() {
+
+    return Pointer<TestClassBase>( methodReturnRawPointer() );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+void PointerTest::testReturnByValue() {
+
+    Pointer<TestClassBase> result = methodReturnPointer();
+}

Modified: activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.h?rev=752616&r1=752615&r2=752616&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.h (original)
+++ activemq/activemq-cpp/trunk/src/test/decaf/lang/PointerTest.h Wed Mar 11 21:05:23 2009
@@ -35,6 +35,7 @@
         CPPUNIT_TEST( testOperators );
         CPPUNIT_TEST( testSTLContainers );
         CPPUNIT_TEST( testInvasive );
+        CPPUNIT_TEST( testReturnByValue );
         CPPUNIT_TEST_SUITE_END();
 
     public:
@@ -50,6 +51,7 @@
         void testOperators();
         void testSTLContainers();
         void testInvasive();
+        void testReturnByValue();
 
     };
 



Mime
View raw message