diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-01-18 18:20:00 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:53 -0300 |
commit | 91818aecdaa52facd7f62931343f0e8aa4b69f55 (patch) | |
tree | 45bc84b00f884d3f28b319d0c50eefab673b85a1 /tests/libsample | |
parent | f23f606c02e8c62635bd0d0f030e5c9550171b9c (diff) |
Added more test cases for protected attributes.
The tests are meant to be useful when compiled without the protected
hack or on the win32 platform.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/protected.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/libsample/protected.h b/tests/libsample/protected.h index bf4dea045..645dd93e9 100644 --- a/tests/libsample/protected.h +++ b/tests/libsample/protected.h @@ -24,6 +24,8 @@ #define PROTECTED_H #include "libsamplemacros.h" +#include "objecttype.h" +#include "point.h" #include <string> class ProtectedNonPolymorphic @@ -117,9 +119,19 @@ protected: class ProtectedProperty { public: - ProtectedProperty() : protectedProperty(0) {} + ProtectedProperty() + : protectedProperty(0), + protectedEnumProperty(Event::NO_EVENT), + protectedValueTypeProperty(Point(0, 0)), + protectedValueTypePointerProperty(0), + protectedObjectTypeProperty(0) + {} protected: int protectedProperty; + Event::EventType protectedEnumProperty; + Point protectedValueTypeProperty; + Point* protectedValueTypePointerProperty; + ObjectType* protectedObjectTypeProperty; }; #endif // PROTECTED_H |