Director smartptr testing

- Enhance Java and C# test
- Add Ruby test
This commit is contained in:
William S Fulton 2015-09-30 07:53:19 +01:00
commit 350eff3687
4 changed files with 107 additions and 25 deletions

View file

@ -23,10 +23,12 @@ public:
virtual ~Foo() {}
virtual std::string ping() { return "Foo::ping()"; }
virtual std::string pong() { return "Foo::pong();" + ping(); }
virtual std::string fooBar(FooBar* fooBarPtr) { return fooBarPtr->FooBarDo(); }
virtual std::string upcall(FooBar* fooBarPtr) { return fooBarPtr->FooBarDo(); }
virtual Foo makeFoo() { return Foo(); }
virtual FooBar makeFooBar() { return FooBar(); }
static std::string callPong(Foo &foo) { return foo.pong(); }
static std::string callUpcall(Foo &foo, FooBar* fooBarPtr) { return foo.upcall(fooBarPtr); }
static Foo* get_self(Foo *self_) {return self_;}
};
@ -61,10 +63,12 @@ public:
virtual ~Foo();
virtual std::string ping();
virtual std::string pong();
virtual std::string fooBar(FooBar* fooBarPtr);
virtual std::string upcall(FooBar* fooBarPtr);
virtual Foo makeFoo();
virtual FooBar makeFooBar();
static std::string callPong(Foo &foo);
static std::string callUpcall(Foo &foo, FooBar* fooBarPtr);
static Foo* get_self(Foo *self_);
};