[pygccxml-commit] SF.net SVN: pygccxml: [925] pyplusplus_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2007-02-24 19:11:18
|
Revision: 925
http://svn.sourceforge.net/pygccxml/?rev=925&view=rev
Author: roman_yakovenko
Date: 2007-02-24 11:11:16 -0800 (Sat, 24 Feb 2007)
Log Message:
-----------
adding functionality necessary to implement correct "transfer_ownership" behaviour - adding tester
Modified Paths:
--------------
pyplusplus_dev/unittests/data/transfer_ownership_to_be_exported.hpp
pyplusplus_dev/unittests/transfer_ownership_tester.py
Modified: pyplusplus_dev/unittests/data/transfer_ownership_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/transfer_ownership_to_be_exported.hpp 2007-02-24 19:09:22 UTC (rev 924)
+++ pyplusplus_dev/unittests/data/transfer_ownership_to_be_exported.hpp 2007-02-24 19:11:16 UTC (rev 925)
@@ -3,11 +3,16 @@
struct event_t
{
+ virtual ~event_t(){}
+ void invoke(){
+ notify();
+ }
+protected:
virtual void notify() = 0;
- virtual ~event_t(){}
};
struct do_nothing_t : event_t{
+protected:
virtual void notify(){};
};
@@ -18,7 +23,7 @@
};
void run() {
- m_event->notify();
+ m_event->invoke();
delete m_event;
m_event = 0;
};
Modified: pyplusplus_dev/unittests/transfer_ownership_tester.py
===================================================================
--- pyplusplus_dev/unittests/transfer_ownership_tester.py 2007-02-24 19:09:22 UTC (rev 924)
+++ pyplusplus_dev/unittests/transfer_ownership_tester.py 2007-02-24 19:11:16 UTC (rev 925)
@@ -77,8 +77,7 @@
self.container = container
def notify( self ):
- print 1
- #self.container.append( 1 )
+ self.container.append( 1 )
print '1'
notify_data = []
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|