diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-05-31 10:02:21 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-01 11:14:38 -0300 |
commit | dfdc92fbe5288064987beb097f50a73a63d2546e (patch) | |
tree | 1159f3578a5d40c5b3d212906f35a84eddd1c0e3 /tests/libsample | |
parent | a7ff3eba6db91b02b64fd3eb188c78c66b282c0b (diff) |
Adds protected enum test cases.
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/protected.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/libsample/protected.h b/tests/libsample/protected.h index 23b2f5ca7..abbbf2930 100644 --- a/tests/libsample/protected.h +++ b/tests/libsample/protected.h @@ -106,5 +106,19 @@ private: static int dtor_called; }; +class LIBSAMPLE_API ProtectedEnumClass +{ +public: + ProtectedEnumClass() {} + virtual ~ProtectedEnumClass() {} +protected: + enum ProtectedEnum { + ProtectedItem0, + ProtectedItem1 + }; + ProtectedEnum callProtectedEnumMethod(ProtectedEnum in) { return protectedEnumMethod(in); } + virtual ProtectedEnum protectedEnumMethod(ProtectedEnum in) { return in; } +}; + #endif // PROTECTED_H |