summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/update/TestI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-06-17 15:25:02 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-06-17 15:25:02 +0000
commit2bc0f2b81423bb51c8649fefdeae23c602a56558 (patch)
treeda5dc69eda441fe23345267d1606da5266413f94 /cpp/test/IceGrid/update/TestI.cpp
parentbuild fix (diff)
downloadice-2bc0f2b81423bb51c8649fefdeae23c602a56558.tar.bz2
ice-2bc0f2b81423bb51c8649fefdeae23c602a56558.tar.xz
ice-2bc0f2b81423bb51c8649fefdeae23c602a56558.zip
Fixed bugs + added "update" test suite
Diffstat (limited to 'cpp/test/IceGrid/update/TestI.cpp')
-rw-r--r--cpp/test/IceGrid/update/TestI.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpp/test/IceGrid/update/TestI.cpp b/cpp/test/IceGrid/update/TestI.cpp
new file mode 100644
index 00000000000..f33c9a227a9
--- /dev/null
+++ b/cpp/test/IceGrid/update/TestI.cpp
@@ -0,0 +1,29 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 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 <Ice/Ice.h>
+#include <TestI.h>
+
+TestI::TestI(const Ice::ObjectAdapterPtr& adapter, const Ice::PropertiesPtr& properties) :
+ _adapter(adapter),
+ _properties(properties)
+{
+}
+
+void
+TestI::shutdown(const Ice::Current&)
+{
+ _adapter->getCommunicator()->shutdown();
+}
+
+std::string
+TestI::getProperty(const std::string& name, const Ice::Current&)
+{
+ return _properties->getProperty(name);
+}