summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp114
-rw-r--r--cpp/test/Ice/adapterDeactivation/ServantLocatorI.h62
2 files changed, 88 insertions, 88 deletions
diff --git a/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp b/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp
index 521d5393583..62fcc16487a 100644
--- a/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp
+++ b/cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp
@@ -1,62 +1,62 @@
-// **********************************************************************
-//
-// Copyright (c) 2002
-// ZeroC, Inc.
-// Billerica, MA, USA
-//
+// **********************************************************************
+//
+// Copyright (c) 2002
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
// All Rights Reserved.
//
// Ice is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License version 2 as published by
// the Free Software Foundation.
-//
-// **********************************************************************
-
-#include <ServantLocatorI.h>
-#include <TestCommon.h>
-#include <TestI.h>
-
-using namespace std;
-using namespace Ice;
-
-ServantLocatorI::ServantLocatorI() :
- _deactivated(false)
-{
-}
-
-ServantLocatorI::~ServantLocatorI()
-{
- test(_deactivated);
-}
-
-Ice::ObjectPtr
-ServantLocatorI::locate(const Ice::Current& current, Ice::LocalObjectPtr& cookie)
-{
- test(!_deactivated);
-
- test(current.id.category == "");
- test(current.id.name == "test");
-
- cookie = new CookieI;
-
- return new TestI;
-}
-
-void
-ServantLocatorI::finished(const Ice::Current& current, const Ice::ObjectPtr& servant,
- const Ice::LocalObjectPtr& cookie)
-{
- test(!_deactivated);
-
- CookiePtr co = CookiePtr::dynamicCast(cookie);
- test(co);
- test(co->message() == "blahblah");
-}
-
-void
-ServantLocatorI::deactivate()
-{
- test(!_deactivated);
-
- _deactivated = true;
-}
+//
+// **********************************************************************
+
+#include <ServantLocatorI.h>
+#include <TestCommon.h>
+#include <TestI.h>
+
+using namespace std;
+using namespace Ice;
+
+ServantLocatorI::ServantLocatorI() :
+ _deactivated(false)
+{
+}
+
+ServantLocatorI::~ServantLocatorI()
+{
+ test(_deactivated);
+}
+
+Ice::ObjectPtr
+ServantLocatorI::locate(const Ice::Current& current, Ice::LocalObjectPtr& cookie)
+{
+ test(!_deactivated);
+
+ test(current.id.category == "");
+ test(current.id.name == "test");
+
+ cookie = new CookieI;
+
+ return new TestI;
+}
+
+void
+ServantLocatorI::finished(const Ice::Current& current, const Ice::ObjectPtr& servant,
+ const Ice::LocalObjectPtr& cookie)
+{
+ test(!_deactivated);
+
+ CookiePtr co = CookiePtr::dynamicCast(cookie);
+ test(co);
+ test(co->message() == "blahblah");
+}
+
+void
+ServantLocatorI::deactivate()
+{
+ test(!_deactivated);
+
+ _deactivated = true;
+}
diff --git a/cpp/test/Ice/adapterDeactivation/ServantLocatorI.h b/cpp/test/Ice/adapterDeactivation/ServantLocatorI.h
index c7a8ccdc528..6608f772a7a 100644
--- a/cpp/test/Ice/adapterDeactivation/ServantLocatorI.h
+++ b/cpp/test/Ice/adapterDeactivation/ServantLocatorI.h
@@ -1,36 +1,36 @@
-// **********************************************************************
-//
-// Copyright (c) 2002
-// ZeroC, Inc.
-// Billerica, MA, USA
-//
+// **********************************************************************
+//
+// Copyright (c) 2002
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
// All Rights Reserved.
//
// Ice is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License version 2 as published by
// the Free Software Foundation.
-//
-// **********************************************************************
-
-#ifndef SERVANT_LOCATOR_I_H
-#define SERVANT_LOCATOR_I_H
-
-#include <Ice/Ice.h>
-
-class ServantLocatorI : public Ice::ServantLocator
-{
-public:
-
- ServantLocatorI();
- virtual ~ServantLocatorI();
-
- virtual Ice::ObjectPtr locate(const Ice::Current&, Ice::LocalObjectPtr&);
- virtual void finished(const Ice::Current&, const Ice::ObjectPtr&, const Ice::LocalObjectPtr&);
- virtual void deactivate();
-
-public:
-
- bool _deactivated;
-};
-
-#endif
+//
+// **********************************************************************
+
+#ifndef SERVANT_LOCATOR_I_H
+#define SERVANT_LOCATOR_I_H
+
+#include <Ice/Ice.h>
+
+class ServantLocatorI : public Ice::ServantLocator
+{
+public:
+
+ ServantLocatorI();
+ virtual ~ServantLocatorI();
+
+ virtual Ice::ObjectPtr locate(const Ice::Current&, Ice::LocalObjectPtr&);
+ virtual void finished(const Ice::Current&, const Ice::ObjectPtr&, const Ice::LocalObjectPtr&);
+ virtual void deactivate();
+
+public:
+
+ bool _deactivated;
+};
+
+#endif