diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-11-25 15:05:41 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-11-25 15:05:41 +0100 |
commit | 2fca2c1309c4991b21ff956709068122f19eef4a (patch) | |
tree | b90e6fe1450508f5ce2962e21627a4535414e1a6 /cpp/test/Ice/ami/TestI.cpp | |
parent | Update depends for SQL directories (diff) | |
download | ice-2fca2c1309c4991b21ff956709068122f19eef4a.tar.bz2 ice-2fca2c1309c4991b21ff956709068122f19eef4a.tar.xz ice-2fca2c1309c4991b21ff956709068122f19eef4a.zip |
- Cleaned up test/Ice/operations test
- Added test/Ice/ami test
- sent callback is now always called
Diffstat (limited to 'cpp/test/Ice/ami/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/ami/TestI.cpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/cpp/test/Ice/ami/TestI.cpp b/cpp/test/Ice/ami/TestI.cpp new file mode 100644 index 00000000000..b2e42bee81d --- /dev/null +++ b/cpp/test/Ice/ami/TestI.cpp @@ -0,0 +1,58 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <TestI.h> +#include <Ice/Ice.h> + +using namespace std; +using namespace Ice; + +void +TestIntfI::op(const Ice::Current& current) +{ +} + +int +TestIntfI::opWithResult(const Ice::Current& current) +{ + return 15; +} + +void +TestIntfI::opWithUE(const Ice::Current& current) +{ + throw Test::TestIntfException(); +} + +void +TestIntfI::opWithPayload(const Ice::ByteSeq&, const Ice::Current& current) +{ +} + +void +TestIntfI::shutdown(const Ice::Current& current) +{ + current.adapter->getCommunicator()->shutdown(); +} + +void +TestIntfControllerI::holdAdapter(const Ice::Current&) +{ + _adapter->hold(); +} + +void +TestIntfControllerI::resumeAdapter(const Ice::Current&) +{ + _adapter->activate(); +} + +TestIntfControllerI::TestIntfControllerI(const Ice::ObjectAdapterPtr& adapter) : _adapter(adapter) +{ +} |