summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test')
-rw-r--r--cpp/test/Glacier2/dynamicFiltering/Server.cpp10
-rw-r--r--cpp/test/Glacier2/override/Server.cpp2
-rw-r--r--cpp/test/Glacier2/router/Client.cpp6
-rw-r--r--cpp/test/Glacier2/router/Server.cpp8
-rw-r--r--cpp/test/Glacier2/sessionControl/Server.cpp2
-rw-r--r--cpp/test/Glacier2/sessionHelper/Server.cpp2
-rw-r--r--cpp/test/Glacier2/ssl/Server.cpp8
-rw-r--r--cpp/test/Glacier2/staticFiltering/Server.cpp6
-rw-r--r--cpp/test/Ice/acm/Server.cpp2
-rw-r--r--cpp/test/Ice/acm/TestI.cpp2
-rw-r--r--cpp/test/Ice/admin/AllTests.cpp2
-rw-r--r--cpp/test/Ice/admin/Server.cpp2
-rw-r--r--cpp/test/Ice/ami/Collocated.cpp4
-rw-r--r--cpp/test/Ice/ami/Server.cpp4
-rw-r--r--cpp/test/Ice/background/Server.cpp12
-rw-r--r--cpp/test/Ice/binding/AllTests.cpp2
-rw-r--r--cpp/test/Ice/binding/Server.cpp2
-rw-r--r--cpp/test/Ice/binding/TestI.cpp2
-rw-r--r--cpp/test/Ice/checksum/Server.cpp2
-rw-r--r--cpp/test/Ice/custom/Collocated.cpp6
-rw-r--r--cpp/test/Ice/custom/Server.cpp6
-rw-r--r--cpp/test/Ice/custom/ServerAMD.cpp6
-rw-r--r--cpp/test/Ice/dispatcher/Collocated.cpp4
-rw-r--r--cpp/test/Ice/dispatcher/Server.cpp4
-rw-r--r--cpp/test/Ice/echo/Server.cpp2
-rw-r--r--cpp/test/Ice/enums/Server.cpp2
-rw-r--r--cpp/test/Ice/exceptions/AllTests.cpp20
-rw-r--r--cpp/test/Ice/exceptions/Collocated.cpp2
-rw-r--r--cpp/test/Ice/exceptions/Server.cpp6
-rw-r--r--cpp/test/Ice/exceptions/ServerAMD.cpp6
-rw-r--r--cpp/test/Ice/facets/AllTests.cpp26
-rw-r--r--cpp/test/Ice/facets/Collocated.cpp8
-rw-r--r--cpp/test/Ice/facets/Server.cpp8
-rw-r--r--cpp/test/Ice/faultTolerance/Server.cpp2
-rw-r--r--cpp/test/Ice/hold/Server.cpp4
-rw-r--r--cpp/test/Ice/impl/Server.cpp2
-rw-r--r--cpp/test/Ice/impl/ServerAMD.cpp2
-rw-r--r--cpp/test/Ice/info/Server.cpp2
-rw-r--r--cpp/test/Ice/inheritance/Collocated.cpp2
-rw-r--r--cpp/test/Ice/inheritance/Server.cpp2
-rw-r--r--cpp/test/Ice/location/AllTests.cpp2
-rw-r--r--cpp/test/Ice/location/Server.cpp8
-rw-r--r--cpp/test/Ice/location/TestI.cpp14
-rw-r--r--cpp/test/Ice/metrics/Collocated.cpp4
-rw-r--r--cpp/test/Ice/metrics/Server.cpp4
-rw-r--r--cpp/test/Ice/metrics/ServerAMD.cpp4
-rw-r--r--cpp/test/Ice/networkProxy/Server.cpp2
-rw-r--r--cpp/test/Ice/objects/Collocated.cpp6
-rw-r--r--cpp/test/Ice/objects/Server.cpp6
-rw-r--r--cpp/test/Ice/operations/Collocated.cpp2
-rw-r--r--cpp/test/Ice/operations/Server.cpp2
-rw-r--r--cpp/test/Ice/operations/ServerAMD.cpp2
-rw-r--r--cpp/test/Ice/operations/TestAMDI.cpp4
-rw-r--r--cpp/test/Ice/operations/TestI.cpp2
-rw-r--r--cpp/test/Ice/operations/Twoways.cpp6
-rw-r--r--cpp/test/Ice/operations/TwowaysAMI.cpp6
-rw-r--r--cpp/test/Ice/optional/Server.cpp2
-rw-r--r--cpp/test/Ice/optional/ServerAMD.cpp2
-rw-r--r--cpp/test/Ice/proxy/AllTests.cpp12
-rw-r--r--cpp/test/Ice/proxy/Collocated.cpp2
-rw-r--r--cpp/test/Ice/proxy/Server.cpp2
-rw-r--r--cpp/test/Ice/proxy/ServerAMD.cpp2
-rw-r--r--cpp/test/Ice/retry/Collocated.cpp2
-rw-r--r--cpp/test/Ice/retry/Server.cpp2
-rw-r--r--cpp/test/Ice/servantLocator/Collocated.cpp4
-rw-r--r--cpp/test/Ice/servantLocator/Server.cpp4
-rw-r--r--cpp/test/Ice/servantLocator/ServerAMD.cpp4
-rw-r--r--cpp/test/Ice/slicing/exceptions/Server.cpp2
-rw-r--r--cpp/test/Ice/slicing/exceptions/ServerAMD.cpp2
-rw-r--r--cpp/test/Ice/slicing/objects/Server.cpp2
-rw-r--r--cpp/test/Ice/slicing/objects/ServerAMD.cpp2
-rw-r--r--cpp/test/Ice/stringConverter/Server.cpp2
-rw-r--r--cpp/test/Ice/threadPoolPriority/Server.cpp2
-rw-r--r--cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp2
-rw-r--r--cpp/test/Ice/timeout/Server.cpp2
-rw-r--r--cpp/test/Ice/udp/Server.cpp6
-rw-r--r--cpp/test/IceBox/configuration/Service.cpp2
-rw-r--r--cpp/test/IceDiscovery/simple/Server.cpp2
-rw-r--r--cpp/test/IceGrid/activation/Server.cpp2
-rw-r--r--cpp/test/IceGrid/allocation/AllTests.cpp32
-rw-r--r--cpp/test/IceGrid/allocation/PermissionsVerifier.cpp2
-rw-r--r--cpp/test/IceGrid/allocation/Server.cpp20
-rw-r--r--cpp/test/IceGrid/deployer/AllTests.cpp16
-rw-r--r--cpp/test/IceGrid/deployer/Server.cpp2
-rw-r--r--cpp/test/IceGrid/deployer/Service.cpp2
-rw-r--r--cpp/test/IceGrid/distribution/Server.cpp2
-rw-r--r--cpp/test/IceGrid/noRestartUpdate/AllTests.cpp12
-rw-r--r--cpp/test/IceGrid/noRestartUpdate/Server.cpp2
-rw-r--r--cpp/test/IceGrid/noRestartUpdate/Service.cpp2
-rw-r--r--cpp/test/IceGrid/replicaGroup/Server.cpp4
-rw-r--r--cpp/test/IceGrid/replicaGroup/Service.cpp4
-rw-r--r--cpp/test/IceGrid/replication/AllTests.cpp40
-rw-r--r--cpp/test/IceGrid/replication/Server.cpp2
-rw-r--r--cpp/test/IceGrid/session/AllTests.cpp16
-rw-r--r--cpp/test/IceGrid/session/PermissionsVerifier.cpp2
-rw-r--r--cpp/test/IceGrid/session/Server.cpp4
-rw-r--r--cpp/test/IceGrid/simple/Server.cpp2
-rw-r--r--cpp/test/IceGrid/update/AllTests.cpp18
-rw-r--r--cpp/test/IceGrid/update/Server.cpp2
-rw-r--r--cpp/test/IceSSL/configuration/Server.cpp2
-rw-r--r--cpp/test/IceStorm/rep1/Sub.cpp2
-rw-r--r--cpp/test/Slice/keyword/Client.cpp4
102 files changed, 267 insertions, 269 deletions
diff --git a/cpp/test/Glacier2/dynamicFiltering/Server.cpp b/cpp/test/Glacier2/dynamicFiltering/Server.cpp
index a4c45965b22..82fc03b1598 100644
--- a/cpp/test/Glacier2/dynamicFiltering/Server.cpp
+++ b/cpp/test/Glacier2/dynamicFiltering/Server.cpp
@@ -57,7 +57,7 @@ public:
_adapter(adapter)
{
_registryPrx = LocatorRegistryPrx::uncheckedCast(adapter->add(new ServerLocatorRegistry,
- _adapter->getCommunicator()->stringToIdentity("registry")));
+ Ice::stringToIdentity("registry")));
}
virtual void
@@ -69,7 +69,7 @@ public:
virtual void
findAdapterById_async(const AMD_Locator_findAdapterByIdPtr& cb, const string&, const Current&) const
{
- cb->ice_response(_adapter->createDirectProxy(_adapter->getCommunicator()->stringToIdentity("dummy")));
+ cb->ice_response(_adapter->createDirectProxy(stringToIdentity("dummy")));
}
virtual LocatorRegistryPrx
@@ -146,12 +146,12 @@ SessionControlServer::run(int, char*[])
communicator()->getProperties()->setProperty("TestControllerAdapter.Endpoints", "tcp -p 12013");
ObjectAdapterPtr controllerAdapter = communicator()->createObjectAdapter("TestControllerAdapter");
TestControllerIPtr controller = new TestControllerI;
- controllerAdapter->add(controller, communicator()->stringToIdentity("testController"));
+ controllerAdapter->add(controller, Ice::stringToIdentity("testController"));
controllerAdapter->activate();
communicator()->getProperties()->setProperty("SessionControlAdapter.Endpoints", "tcp -p 12010");
ObjectAdapterPtr adapter = communicator()->createObjectAdapter("SessionControlAdapter");
- adapter->add(new SessionManagerI(controller), communicator()->stringToIdentity("SessionManager"));
+ adapter->add(new SessionManagerI(controller), Ice::stringToIdentity("SessionManager"));
adapter->activate();
BackendPtr backend = new BackendI;
@@ -161,7 +161,7 @@ SessionControlServer::run(int, char*[])
backendAdapter->activate();
Ice::LocatorPtr locator = new ServerLocatorI(backend, backendAdapter);
- backendAdapter->add(locator, communicator()->stringToIdentity("locator"));
+ backendAdapter->add(locator, Ice::stringToIdentity("locator"));
communicator()->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Glacier2/override/Server.cpp b/cpp/test/Glacier2/override/Server.cpp
index 9fe3f80a47b..e7317bf1108 100644
--- a/cpp/test/Glacier2/override/Server.cpp
+++ b/cpp/test/Glacier2/override/Server.cpp
@@ -44,7 +44,7 @@ CallbackServer::run(int, char**)
{
communicator()->getProperties()->setProperty("CallbackAdapter.Endpoints", "tcp -p 12010");
ObjectAdapterPtr adapter = communicator()->createObjectAdapter("CallbackAdapter");
- adapter->add(new CallbackI(), communicator()->stringToIdentity("c/callback"));
+ adapter->add(new CallbackI(), Ice::stringToIdentity("c/callback"));
adapter->activate();
communicator()->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Glacier2/router/Client.cpp b/cpp/test/Glacier2/router/Client.cpp
index 1987e693dbc..937a114e053 100644
--- a/cpp/test/Glacier2/router/Client.cpp
+++ b/cpp/test/Glacier2/router/Client.cpp
@@ -712,7 +712,7 @@ CallbackClient::run(int argc, char* argv[])
Context context;
context["_fwd"] = "t";
CallbackPrx otherCategoryTwoway = CallbackPrx::uncheckedCast(
- twoway->ice_identity(communicator()->stringToIdentity("c2/callback")));
+ twoway->ice_identity(stringToIdentity("c2/callback")));
otherCategoryTwoway->initiateCallback(twowayR, context);
callbackReceiverImpl->callbackOK();
cout << "ok" << endl;
@@ -725,7 +725,7 @@ CallbackClient::run(int argc, char* argv[])
try
{
CallbackPrx otherCategoryTwoway = CallbackPrx::uncheckedCast(
- twoway->ice_identity(communicator()->stringToIdentity("c3/callback")));
+ twoway->ice_identity(stringToIdentity("c3/callback")));
otherCategoryTwoway->initiateCallback(twowayR, context);
test(false);
}
@@ -740,7 +740,7 @@ CallbackClient::run(int argc, char* argv[])
Context context;
context["_fwd"] = "t";
CallbackPrx otherCategoryTwoway = CallbackPrx::uncheckedCast(
- twoway->ice_identity(communicator()->stringToIdentity("_userid/callback")));
+ twoway->ice_identity(stringToIdentity("_userid/callback")));
otherCategoryTwoway->initiateCallback(twowayR, context);
callbackReceiverImpl->callbackOK();
cout << "ok" << endl;
diff --git a/cpp/test/Glacier2/router/Server.cpp b/cpp/test/Glacier2/router/Server.cpp
index 494c97c14c3..f07ce8fc713 100644
--- a/cpp/test/Glacier2/router/Server.cpp
+++ b/cpp/test/Glacier2/router/Server.cpp
@@ -43,10 +43,10 @@ CallbackServer::run(int, char**)
{
communicator()->getProperties()->setProperty("CallbackAdapter.Endpoints", "tcp -p 12010");
ObjectAdapterPtr adapter = communicator()->createObjectAdapter("CallbackAdapter");
- adapter->add(new CallbackI(), communicator()->stringToIdentity("c1/callback")); // The test allows "c1" as category.
- adapter->add(new CallbackI(), communicator()->stringToIdentity("c2/callback")); // The test allows "c2" as category.
- adapter->add(new CallbackI(), communicator()->stringToIdentity("c3/callback")); // The test rejects "c3" as category.
- adapter->add(new CallbackI(), communicator()->stringToIdentity("_userid/callback")); // The test allows the prefixed userid.
+ adapter->add(new CallbackI(), Ice::stringToIdentity("c1/callback")); // The test allows "c1" as category.
+ adapter->add(new CallbackI(), Ice::stringToIdentity("c2/callback")); // The test allows "c2" as category.
+ adapter->add(new CallbackI(), Ice::stringToIdentity("c3/callback")); // The test rejects "c3" as category.
+ adapter->add(new CallbackI(), Ice::stringToIdentity("_userid/callback")); // The test allows the prefixed userid.
adapter->activate();
communicator()->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Glacier2/sessionControl/Server.cpp b/cpp/test/Glacier2/sessionControl/Server.cpp
index cd24c48eb51..cffa77ec01a 100644
--- a/cpp/test/Glacier2/sessionControl/Server.cpp
+++ b/cpp/test/Glacier2/sessionControl/Server.cpp
@@ -38,7 +38,7 @@ SessionControlServer::run(int, char**)
{
communicator()->getProperties()->setProperty("SessionControlAdapter.Endpoints", "tcp -p 12010");
ObjectAdapterPtr adapter = communicator()->createObjectAdapter("SessionControlAdapter");
- adapter->add(new SessionManagerI, communicator()->stringToIdentity("SessionManager"));
+ adapter->add(new SessionManagerI, Ice::stringToIdentity("SessionManager"));
adapter->activate();
communicator()->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Glacier2/sessionHelper/Server.cpp b/cpp/test/Glacier2/sessionHelper/Server.cpp
index c5e95356813..f359b5f557d 100644
--- a/cpp/test/Glacier2/sessionHelper/Server.cpp
+++ b/cpp/test/Glacier2/sessionHelper/Server.cpp
@@ -59,7 +59,7 @@ SessionHelperServer::run(int, char**)
communicator()->getProperties()->setProperty("CallbackAdapter.Endpoints", "default -p 12010");
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("CallbackAdapter");
- adapter->add(new CallbackI(), communicator()->stringToIdentity("callback"));
+ adapter->add(new CallbackI(), Ice::stringToIdentity("callback"));
adapter->activate();
communicator()->waitForShutdown();
diff --git a/cpp/test/Glacier2/ssl/Server.cpp b/cpp/test/Glacier2/ssl/Server.cpp
index 04f9ed6df9c..fcaf8d411b9 100644
--- a/cpp/test/Glacier2/ssl/Server.cpp
+++ b/cpp/test/Glacier2/ssl/Server.cpp
@@ -171,10 +171,10 @@ SessionServer::run(int, char**)
{
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints(
"SessionServer", "tcp -h 127.0.0.1 -p 12350");
- adapter->add(new PermissionsVerifierI, communicator()->stringToIdentity("verifier"));
- adapter->add(new SSLPermissionsVerifierI, communicator()->stringToIdentity("sslverifier"));
- adapter->add(new SessionManagerI, communicator()->stringToIdentity("sessionmanager"));
- adapter->add(new SSLSessionManagerI, communicator()->stringToIdentity("sslsessionmanager"));
+ adapter->add(new PermissionsVerifierI, Ice::stringToIdentity("verifier"));
+ adapter->add(new SSLPermissionsVerifierI, Ice::stringToIdentity("sslverifier"));
+ adapter->add(new SessionManagerI, Ice::stringToIdentity("sessionmanager"));
+ adapter->add(new SSLSessionManagerI, Ice::stringToIdentity("sslsessionmanager"));
adapter->activate();
communicator()->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Glacier2/staticFiltering/Server.cpp b/cpp/test/Glacier2/staticFiltering/Server.cpp
index 66645f61ff8..034676d7b89 100644
--- a/cpp/test/Glacier2/staticFiltering/Server.cpp
+++ b/cpp/test/Glacier2/staticFiltering/Server.cpp
@@ -54,7 +54,7 @@ public:
_adapter(adapter),
_registryPrx(
LocatorRegistryPrx::uncheckedCast(
- adapter->add(new ServerLocatorRegistry, _adapter->getCommunicator()->stringToIdentity("registry"))))
+ adapter->add(new ServerLocatorRegistry, Ice::stringToIdentity("registry"))))
{
}
@@ -67,7 +67,7 @@ public:
virtual void
findAdapterById_async(const AMD_Locator_findAdapterByIdPtr& cb, const string&, const Current&) const
{
- cb->ice_response(_adapter->createDirectProxy(_adapter->getCommunicator()->stringToIdentity("dummy")));
+ cb->ice_response(_adapter->createDirectProxy(stringToIdentity("dummy")));
}
virtual LocatorRegistryPrx
@@ -137,7 +137,7 @@ BackendServer::run(int, char**)
ObjectAdapterPtr adapter = communicator()->createObjectAdapter("BackendAdapter");
BackendPtr backend = new BackendI;
Ice::LocatorPtr locator = new ServerLocatorI(backend, adapter);
- adapter->add(locator, communicator()->stringToIdentity("locator"));
+ adapter->add(locator, Ice::stringToIdentity("locator"));
adapter->addServantLocator(new ServantLocatorI(backend), "");
adapter->activate();
communicator()->waitForShutdown();
diff --git a/cpp/test/Ice/acm/Server.cpp b/cpp/test/Ice/acm/Server.cpp
index 4797c8607c2..d2af92e45f8 100644
--- a/cpp/test/Ice/acm/Server.cpp
+++ b/cpp/test/Ice/acm/Server.cpp
@@ -21,7 +21,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
communicator->getProperties()->setProperty("TestAdapter.ACM.Timeout", "0");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- Ice::Identity id = communicator->stringToIdentity("communicator");
+ Ice::Identity id = Ice::stringToIdentity("communicator");
adapter->add(ICE_MAKE_SHARED(RemoteCommunicatorI), id);
adapter->activate();
diff --git a/cpp/test/Ice/acm/TestI.cpp b/cpp/test/Ice/acm/TestI.cpp
index 42e0f119cd1..98f07a1b93a 100644
--- a/cpp/test/Ice/acm/TestI.cpp
+++ b/cpp/test/Ice/acm/TestI.cpp
@@ -104,7 +104,7 @@ RemoteCommunicatorI::shutdown(const Ice::Current& current)
RemoteObjectAdapterI::RemoteObjectAdapterI(const Ice::ObjectAdapterPtr& adapter) :
_adapter(adapter),
_testIntf(ICE_UNCHECKED_CAST(TestIntfPrx, _adapter->add(ICE_MAKE_SHARED(TestI),
- adapter->getCommunicator()->stringToIdentity("test"))))
+ stringToIdentity("test"))))
{
_adapter->activate();
}
diff --git a/cpp/test/Ice/admin/AllTests.cpp b/cpp/test/Ice/admin/AllTests.cpp
index da880fc0ced..bbe87980315 100644
--- a/cpp/test/Ice/admin/AllTests.cpp
+++ b/cpp/test/Ice/admin/AllTests.cpp
@@ -225,7 +225,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
Ice::CommunicatorPtr com = Ice::initialize(init);
test(!com->getAdmin());
- Ice::Identity id = com->stringToIdentity("test-admin");
+ Ice::Identity id = stringToIdentity("test-admin");
try
{
com->createAdmin(0, id);
diff --git a/cpp/test/Ice/admin/Server.cpp b/cpp/test/Ice/admin/Server.cpp
index 57157d58363..c18d954e2ef 100644
--- a/cpp/test/Ice/admin/Server.cpp
+++ b/cpp/test/Ice/admin/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + " -t 10000");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- Ice::Identity id = communicator->stringToIdentity("factory");
+ Ice::Identity id = Ice::stringToIdentity("factory");
adapter->add(ICE_MAKE_SHARED(RemoteCommunicatorFactoryI), id);
adapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/ami/Collocated.cpp b/cpp/test/Ice/ami/Collocated.cpp
index 73396d57834..0f9abd96355 100644
--- a/cpp/test/Ice/ami/Collocated.cpp
+++ b/cpp/test/Ice/ami/Collocated.cpp
@@ -27,10 +27,10 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
TestIntfControllerIPtr testController = ICE_MAKE_SHARED(TestIntfControllerI, adapter);
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
//adapter->activate(); // Collocated test doesn't need to activate the OA
- adapter2->add(testController, communicator->stringToIdentity("testController"));
+ adapter2->add(testController, Ice::stringToIdentity("testController"));
//adapter2->activate(); // Collocated test doesn't need to activate the OA
void allTests(const Ice::CommunicatorPtr&, bool);
diff --git a/cpp/test/Ice/ami/Server.cpp b/cpp/test/Ice/ami/Server.cpp
index adf27fd04f2..7c0ebd03b42 100644
--- a/cpp/test/Ice/ami/Server.cpp
+++ b/cpp/test/Ice/ami/Server.cpp
@@ -27,10 +27,10 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
TestIntfControllerIPtr testController = ICE_MAKE_SHARED(TestIntfControllerI, adapter);
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
adapter->activate();
- adapter2->add(testController, communicator->stringToIdentity("testController"));
+ adapter2->add(testController, Ice::stringToIdentity("testController"));
adapter2->activate();
TEST_READY
diff --git a/cpp/test/Ice/background/Server.cpp b/cpp/test/Ice/background/Server.cpp
index 201b7610d5d..3f13ca8fbb3 100644
--- a/cpp/test/Ice/background/Server.cpp
+++ b/cpp/test/Ice/background/Server.cpp
@@ -31,7 +31,7 @@ public:
{
_controller->checkCallPause(current);
Ice::CommunicatorPtr communicator = current.adapter->getCommunicator();
- response(current.adapter->createDirectProxy(communicator->stringToIdentity("dummy")));
+ response(current.adapter->createDirectProxy(Ice::stringToIdentity("dummy")));
}
virtual void
@@ -51,7 +51,7 @@ public:
{
_controller->checkCallPause(current);
Ice::CommunicatorPtr communicator = current.adapter->getCommunicator();
- response->ice_response(current.adapter->createDirectProxy(communicator->stringToIdentity("dummy")));
+ response->ice_response(current.adapter->createDirectProxy(Ice::stringToIdentity("dummy")));
}
virtual void
@@ -132,12 +132,12 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
ConfigurationPtr configuration = plugin->getConfiguration();
BackgroundControllerIPtr backgroundController = ICE_MAKE_SHARED(BackgroundControllerI, adapter, configuration);
- adapter->add(ICE_MAKE_SHARED(BackgroundI, backgroundController), communicator->stringToIdentity("background"));
- adapter->add(ICE_MAKE_SHARED(LocatorI, backgroundController), communicator->stringToIdentity("locator"));
- adapter->add(ICE_MAKE_SHARED(RouterI, backgroundController), communicator->stringToIdentity("router"));
+ adapter->add(ICE_MAKE_SHARED(BackgroundI, backgroundController), Ice::stringToIdentity("background"));
+ adapter->add(ICE_MAKE_SHARED(LocatorI, backgroundController), Ice::stringToIdentity("locator"));
+ adapter->add(ICE_MAKE_SHARED(RouterI, backgroundController), Ice::stringToIdentity("router"));
adapter->activate();
- adapter2->add(backgroundController, communicator->stringToIdentity("backgroundController"));
+ adapter2->add(backgroundController, Ice::stringToIdentity("backgroundController"));
adapter2->activate();
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/binding/AllTests.cpp b/cpp/test/Ice/binding/AllTests.cpp
index e2f8a0e24a4..7b840621ab2 100644
--- a/cpp/test/Ice/binding/AllTests.cpp
+++ b/cpp/test/Ice/binding/AllTests.cpp
@@ -987,7 +987,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
// Ensure the published endpoints are actually valid. On
// Fedora, binding to "localhost" with IPv6 only works but
// resolving localhost don't return the IPv6 adress.
- Ice::ObjectPrxPtr prx = oa->createProxy(serverCommunicator->stringToIdentity("dummy"));
+ Ice::ObjectPrxPtr prx = oa->createProxy(Ice::stringToIdentity("dummy"));
try
{
prx->ice_collocationOptimized(false)->ice_ping();
diff --git a/cpp/test/Ice/binding/Server.cpp b/cpp/test/Ice/binding/Server.cpp
index 6e182cf26e4..431e7dfe3f2 100644
--- a/cpp/test/Ice/binding/Server.cpp
+++ b/cpp/test/Ice/binding/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- Ice::Identity id = communicator->stringToIdentity("communicator");
+ Ice::Identity id = Ice::stringToIdentity("communicator");
adapter->add(ICE_MAKE_SHARED(RemoteCommunicatorI), id);
adapter->activate();
diff --git a/cpp/test/Ice/binding/TestI.cpp b/cpp/test/Ice/binding/TestI.cpp
index 28c29b774c6..2f2904303c7 100644
--- a/cpp/test/Ice/binding/TestI.cpp
+++ b/cpp/test/Ice/binding/TestI.cpp
@@ -69,7 +69,7 @@ RemoteObjectAdapterI::RemoteObjectAdapterI(const Ice::ObjectAdapterPtr& adapter)
_adapter(adapter),
_testIntf(ICE_UNCHECKED_CAST(TestIntfPrx,
_adapter->add(ICE_MAKE_SHARED(TestI),
- adapter->getCommunicator()->stringToIdentity("test"))))
+ stringToIdentity("test"))))
{
_adapter->activate();
}
diff --git a/cpp/test/Ice/checksum/Server.cpp b/cpp/test/Ice/checksum/Server.cpp
index 534567b0a15..42d986b2dbf 100644
--- a/cpp/test/Ice/checksum/Server.cpp
+++ b/cpp/test/Ice/checksum/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + " -t 10000");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(ChecksumI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(ChecksumI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/custom/Collocated.cpp b/cpp/test/Ice/custom/Collocated.cpp
index d5e5cd467d0..5f17fb0c7e4 100644
--- a/cpp/test/Ice/custom/Collocated.cpp
+++ b/cpp/test/Ice/custom/Collocated.cpp
@@ -22,9 +22,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(TestIntfI, communicator), communicator->stringToIdentity("test"));
- adapter->add(ICE_MAKE_SHARED(Test1::WstringClassI), communicator->stringToIdentity("wstring1"));
- adapter->add(ICE_MAKE_SHARED(Test2::WstringClassI), communicator->stringToIdentity("wstring2"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI, communicator), Ice::stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(Test1::WstringClassI), Ice::stringToIdentity("wstring1"));
+ adapter->add(ICE_MAKE_SHARED(Test2::WstringClassI), Ice::stringToIdentity("wstring2"));
Test::TestIntfPrxPtr allTests(const Ice::CommunicatorPtr&);
allTests(communicator);
diff --git a/cpp/test/Ice/custom/Server.cpp b/cpp/test/Ice/custom/Server.cpp
index 51c6b4c4cd5..be7e8adf81b 100644
--- a/cpp/test/Ice/custom/Server.cpp
+++ b/cpp/test/Ice/custom/Server.cpp
@@ -22,9 +22,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(TestIntfI, communicator), communicator->stringToIdentity("test"));
- adapter->add(ICE_MAKE_SHARED(Test1::WstringClassI), communicator->stringToIdentity("wstring1"));
- adapter->add(ICE_MAKE_SHARED(Test2::WstringClassI), communicator->stringToIdentity("wstring2"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI, communicator), Ice::stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(Test1::WstringClassI), Ice::stringToIdentity("wstring1"));
+ adapter->add(ICE_MAKE_SHARED(Test2::WstringClassI), Ice::stringToIdentity("wstring2"));
adapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/custom/ServerAMD.cpp b/cpp/test/Ice/custom/ServerAMD.cpp
index e2b635f2665..954a2035ab2 100644
--- a/cpp/test/Ice/custom/ServerAMD.cpp
+++ b/cpp/test/Ice/custom/ServerAMD.cpp
@@ -22,9 +22,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(TestIntfI,communicator), communicator->stringToIdentity("test"));
- adapter->add(ICE_MAKE_SHARED(Test1::WstringClassI), communicator->stringToIdentity("wstring1"));
- adapter->add(ICE_MAKE_SHARED(Test2::WstringClassI), communicator->stringToIdentity("wstring2"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI,communicator), Ice::stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(Test1::WstringClassI), Ice::stringToIdentity("wstring1"));
+ adapter->add(ICE_MAKE_SHARED(Test2::WstringClassI), Ice::stringToIdentity("wstring2"));
adapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/dispatcher/Collocated.cpp b/cpp/test/Ice/dispatcher/Collocated.cpp
index b08e2440643..05592f5a8ed 100644
--- a/cpp/test/Ice/dispatcher/Collocated.cpp
+++ b/cpp/test/Ice/dispatcher/Collocated.cpp
@@ -28,10 +28,10 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
TestIntfControllerIPtr testController = ICE_MAKE_SHARED(TestIntfControllerI, adapter);
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
//adapter->activate(); // Don't activate OA to ensure collocation is used.
- adapter2->add(testController, communicator->stringToIdentity("testController"));
+ adapter2->add(testController, Ice::stringToIdentity("testController"));
//adapter2->activate(); // Don't activate OA to ensure collocation is used.
void allTests(const Ice::CommunicatorPtr&);
diff --git a/cpp/test/Ice/dispatcher/Server.cpp b/cpp/test/Ice/dispatcher/Server.cpp
index bdc490dd4eb..08dc9b75e17 100644
--- a/cpp/test/Ice/dispatcher/Server.cpp
+++ b/cpp/test/Ice/dispatcher/Server.cpp
@@ -28,10 +28,10 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
TestIntfControllerIPtr testController = ICE_MAKE_SHARED(TestIntfControllerI, adapter);
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
adapter->activate();
- adapter2->add(testController, communicator->stringToIdentity("testController"));
+ adapter2->add(testController, Ice::stringToIdentity("testController"));
adapter2->activate();
TEST_READY
diff --git a/cpp/test/Ice/echo/Server.cpp b/cpp/test/Ice/echo/Server.cpp
index e1d56838839..9d80f8833a9 100644
--- a/cpp/test/Ice/echo/Server.cpp
+++ b/cpp/test/Ice/echo/Server.cpp
@@ -52,7 +52,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
BlobjectIPtr blob = ICE_MAKE_SHARED(BlobjectI);
adapter->addDefaultServant(blob, "");
- adapter->add(ICE_MAKE_SHARED(EchoI, blob), communicator->stringToIdentity("__echo"));
+ adapter->add(ICE_MAKE_SHARED(EchoI, blob), Ice::stringToIdentity("__echo"));
adapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/enums/Server.cpp b/cpp/test/Ice/enums/Server.cpp
index e01c6c9c1eb..45dec2632e4 100644
--- a/cpp/test/Ice/enums/Server.cpp
+++ b/cpp/test/Ice/enums/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp
index 18cd9d7539b..3f047784a12 100644
--- a/cpp/test/Ice/exceptions/AllTests.cpp
+++ b/cpp/test/Ice/exceptions/AllTests.cpp
@@ -306,7 +306,7 @@ public:
}
catch(const Ice::ObjectNotExistException& ex)
{
- Ice::Identity id = _communicator->stringToIdentity("does not exist");
+ Ice::Identity id = Ice::stringToIdentity("does not exist");
test(ex.id == id);
}
catch(...)
@@ -563,10 +563,10 @@ allTests(const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter1.Endpoints", localOAEndpoint);
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter1");
Ice::ObjectPtr obj = ICE_MAKE_SHARED(EmptyI);
- adapter->add(obj, communicator->stringToIdentity("x"));
+ adapter->add(obj, Ice::stringToIdentity("x"));
try
{
- adapter->add(obj, communicator->stringToIdentity("x"));
+ adapter->add(obj, Ice::stringToIdentity("x"));
test(false);
}
catch(const Ice::AlreadyRegisteredException& ex)
@@ -580,7 +580,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
- adapter->add(obj, communicator->stringToIdentity(""));
+ adapter->add(obj, Ice::stringToIdentity(""));
}
catch(const Ice::IllegalIdentityException& ex)
{
@@ -594,7 +594,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
- adapter->add(0, communicator->stringToIdentity("x"));
+ adapter->add(0, Ice::stringToIdentity("x"));
}
catch(const Ice::IllegalServantException& ex)
{
@@ -605,10 +605,10 @@ allTests(const Ice::CommunicatorPtr& communicator)
}
}
- adapter->remove(communicator->stringToIdentity("x"));
+ adapter->remove(Ice::stringToIdentity("x"));
try
{
- adapter->remove(communicator->stringToIdentity("x"));
+ adapter->remove(Ice::stringToIdentity("x"));
test(false);
}
catch(const Ice::NotRegisteredException& ex)
@@ -1010,7 +1010,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
cout << "catching object not exist exception... " << flush;
- Ice::Identity id = communicator->stringToIdentity("does not exist");
+ Ice::Identity id = Ice::stringToIdentity("does not exist");
try
{
ThrowerPrxPtr thrower2 = ICE_UNCHECKED_CAST(ThrowerPrx, thrower->ice_identity(id));
@@ -1568,7 +1568,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
#ifdef ICE_CPP11_MAPPING
- id = communicator->stringToIdentity("does not exist");
+ id = Ice::stringToIdentity("does not exist");
shared_ptr<ThrowerPrx> thrower2 = Ice::uncheckedCast<ThrowerPrx>(thrower->ice_identity(id));
auto f = thrower2->throwAasAAsync(1);
try
@@ -1584,7 +1584,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(false);
}
#else
- id = communicator->stringToIdentity("does not exist");
+ id = Ice::stringToIdentity("does not exist");
ThrowerPrx thrower2 = ThrowerPrx::uncheckedCast(thrower->ice_identity(id));
CallbackPtr cb = new Callback(communicator);
Callback_Thrower_throwAasAPtr callback =
diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp
index e5aa2de376a..063bbd25e1a 100644
--- a/cpp/test/Ice/exceptions/Collocated.cpp
+++ b/cpp/test/Ice/exceptions/Collocated.cpp
@@ -22,7 +22,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(ThrowerI);
- adapter->add(object, communicator->stringToIdentity("thrower"));
+ adapter->add(object, Ice::stringToIdentity("thrower"));
ThrowerPrxPtr allTests(const Ice::CommunicatorPtr&);
allTests(communicator);
diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp
index e0cd7903ed5..2a95948c06a 100644
--- a/cpp/test/Ice/exceptions/Server.cpp
+++ b/cpp/test/Ice/exceptions/Server.cpp
@@ -27,9 +27,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("TestAdapter2");
Ice::ObjectAdapterPtr adapter3 = communicator->createObjectAdapter("TestAdapter3");
Ice::ObjectPtr object = ICE_MAKE_SHARED(ThrowerI);
- adapter->add(object, communicator->stringToIdentity("thrower"));
- adapter2->add(object, communicator->stringToIdentity("thrower"));
- adapter3->add(object, communicator->stringToIdentity("thrower"));
+ adapter->add(object, Ice::stringToIdentity("thrower"));
+ adapter2->add(object, Ice::stringToIdentity("thrower"));
+ adapter3->add(object, Ice::stringToIdentity("thrower"));
adapter->activate();
adapter2->activate();
adapter3->activate();
diff --git a/cpp/test/Ice/exceptions/ServerAMD.cpp b/cpp/test/Ice/exceptions/ServerAMD.cpp
index 99dee0dec94..528b0e7ee03 100644
--- a/cpp/test/Ice/exceptions/ServerAMD.cpp
+++ b/cpp/test/Ice/exceptions/ServerAMD.cpp
@@ -27,9 +27,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("TestAdapter2");
Ice::ObjectAdapterPtr adapter3 = communicator->createObjectAdapter("TestAdapter3");
Ice::ObjectPtr object = ICE_MAKE_SHARED(ThrowerI);
- adapter->add(object, communicator->stringToIdentity("thrower"));
- adapter2->add(object, communicator->stringToIdentity("thrower"));
- adapter3->add(object, communicator->stringToIdentity("thrower"));
+ adapter->add(object, Ice::stringToIdentity("thrower"));
+ adapter2->add(object, Ice::stringToIdentity("thrower"));
+ adapter3->add(object, Ice::stringToIdentity("thrower"));
adapter->activate();
adapter2->activate();
adapter3->activate();
diff --git a/cpp/test/Ice/facets/AllTests.cpp b/cpp/test/Ice/facets/AllTests.cpp
index 923bb4e437b..5b542de8a85 100644
--- a/cpp/test/Ice/facets/AllTests.cpp
+++ b/cpp/test/Ice/facets/AllTests.cpp
@@ -60,20 +60,20 @@ allTests(const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("FacetExceptionTestAdapter.Endpoints", localOAEndpoint);
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("FacetExceptionTestAdapter");
Ice::ObjectPtr obj = ICE_MAKE_SHARED(EmptyI);
- adapter->add(obj, communicator->stringToIdentity("d"));
- adapter->addFacet(obj, communicator->stringToIdentity("d"), "facetABCD");
+ adapter->add(obj, Ice::stringToIdentity("d"));
+ adapter->addFacet(obj, Ice::stringToIdentity("d"), "facetABCD");
try
{
- adapter->addFacet(obj, communicator->stringToIdentity("d"), "facetABCD");
+ adapter->addFacet(obj, Ice::stringToIdentity("d"), "facetABCD");
test(false);
}
catch(const Ice::AlreadyRegisteredException&)
{
}
- adapter->removeFacet(communicator->stringToIdentity("d"), "facetABCD");
+ adapter->removeFacet(Ice::stringToIdentity("d"), "facetABCD");
try
{
- adapter->removeFacet(communicator->stringToIdentity("d"), "facetABCD");
+ adapter->removeFacet(Ice::stringToIdentity("d"), "facetABCD");
test(false);
}
catch(const Ice::NotRegisteredException&)
@@ -84,25 +84,25 @@ allTests(const Ice::CommunicatorPtr& communicator)
cout << "testing removeAllFacets... " << flush;
Ice::ObjectPtr obj1 = ICE_MAKE_SHARED(EmptyI);
Ice::ObjectPtr obj2 = ICE_MAKE_SHARED(EmptyI);
- adapter->addFacet(obj1, communicator->stringToIdentity("id1"), "f1");
- adapter->addFacet(obj2, communicator->stringToIdentity("id1"), "f2");
+ adapter->addFacet(obj1, Ice::stringToIdentity("id1"), "f1");
+ adapter->addFacet(obj2, Ice::stringToIdentity("id1"), "f2");
Ice::ObjectPtr obj3 = ICE_MAKE_SHARED(EmptyI);
- adapter->addFacet(obj1, communicator->stringToIdentity("id2"), "f1");
- adapter->addFacet(obj2, communicator->stringToIdentity("id2"), "f2");
- adapter->addFacet(obj3, communicator->stringToIdentity("id2"), "");
- Ice::FacetMap fm = adapter->removeAllFacets(communicator->stringToIdentity("id1"));
+ adapter->addFacet(obj1, Ice::stringToIdentity("id2"), "f1");
+ adapter->addFacet(obj2, Ice::stringToIdentity("id2"), "f2");
+ adapter->addFacet(obj3, Ice::stringToIdentity("id2"), "");
+ Ice::FacetMap fm = adapter->removeAllFacets(Ice::stringToIdentity("id1"));
test(fm.size() == 2);
test(fm["f1"] == obj1);
test(fm["f2"] == obj2);
try
{
- adapter->removeAllFacets(communicator->stringToIdentity("id1"));
+ adapter->removeAllFacets(Ice::stringToIdentity("id1"));
test(false);
}
catch(const Ice::NotRegisteredException&)
{
}
- fm = adapter->removeAllFacets(communicator->stringToIdentity("id2"));
+ fm = adapter->removeAllFacets(Ice::stringToIdentity("id2"));
test(fm.size() == 3);
test(fm["f1"] == obj1);
test(fm["f2"] == obj2);
diff --git a/cpp/test/Ice/facets/Collocated.cpp b/cpp/test/Ice/facets/Collocated.cpp
index 9dbf1bb6b2f..21460a5806c 100644
--- a/cpp/test/Ice/facets/Collocated.cpp
+++ b/cpp/test/Ice/facets/Collocated.cpp
@@ -22,12 +22,12 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr d = ICE_MAKE_SHARED(DI);
- adapter->add(d, communicator->stringToIdentity("d"));
- adapter->addFacet(d, communicator->stringToIdentity("d"), "facetABCD");
+ adapter->add(d, Ice::stringToIdentity("d"));
+ adapter->addFacet(d, Ice::stringToIdentity("d"), "facetABCD");
Ice::ObjectPtr f = ICE_MAKE_SHARED(FI);
- adapter->addFacet(f, communicator->stringToIdentity("d"), "facetEF");
+ adapter->addFacet(f, Ice::stringToIdentity("d"), "facetEF");
Ice::ObjectPtr h = ICE_MAKE_SHARED(HI, communicator);
- adapter->addFacet(h, communicator->stringToIdentity("d"), "facetGH");
+ adapter->addFacet(h, Ice::stringToIdentity("d"), "facetGH");
GPrxPtr allTests(const Ice::CommunicatorPtr&);
allTests(communicator);
diff --git a/cpp/test/Ice/facets/Server.cpp b/cpp/test/Ice/facets/Server.cpp
index b9bff160667..92d0b838bd5 100644
--- a/cpp/test/Ice/facets/Server.cpp
+++ b/cpp/test/Ice/facets/Server.cpp
@@ -21,12 +21,12 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr d = ICE_MAKE_SHARED(DI);
- adapter->add(d, communicator->stringToIdentity("d"));
- adapter->addFacet(d, communicator->stringToIdentity("d"), "facetABCD");
+ adapter->add(d, Ice::stringToIdentity("d"));
+ adapter->addFacet(d, Ice::stringToIdentity("d"), "facetABCD");
Ice::ObjectPtr f = ICE_MAKE_SHARED(FI);
- adapter->addFacet(f, communicator->stringToIdentity("d"), "facetEF");
+ adapter->addFacet(f, Ice::stringToIdentity("d"), "facetEF");
Ice::ObjectPtr h = ICE_MAKE_SHARED(HI, communicator);
- adapter->addFacet(h, communicator->stringToIdentity("d"), "facetGH");
+ adapter->addFacet(h, Ice::stringToIdentity("d"), "facetGH");
TEST_READY
adapter->activate();
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/faultTolerance/Server.cpp b/cpp/test/Ice/faultTolerance/Server.cpp
index ab727d372de..c731d007786 100644
--- a/cpp/test/Ice/faultTolerance/Server.cpp
+++ b/cpp/test/Ice/faultTolerance/Server.cpp
@@ -53,7 +53,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", endpts.str());
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(TestI);
- adapter->add(object, communicator->stringToIdentity("test"));
+ adapter->add(object, Ice::stringToIdentity("test"));
adapter->activate();
communicator->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Ice/hold/Server.cpp b/cpp/test/Ice/hold/Server.cpp
index 3d1db1b74a4..261d83d4660 100644
--- a/cpp/test/Ice/hold/Server.cpp
+++ b/cpp/test/Ice/hold/Server.cpp
@@ -26,7 +26,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter1.ThreadPool.SizeWarn", "0");
communicator->getProperties()->setProperty("TestAdapter1.ThreadPool.Serialize", "0");
Ice::ObjectAdapterPtr adapter1 = communicator->createObjectAdapter("TestAdapter1");
- adapter1->add(ICE_MAKE_SHARED(HoldI, timer, adapter1), communicator->stringToIdentity("hold"));
+ adapter1->add(ICE_MAKE_SHARED(HoldI, timer, adapter1), Ice::stringToIdentity("hold"));
communicator->getProperties()->setProperty("TestAdapter2.Endpoints", getTestEndpoint(communicator, 1) + ":udp");
communicator->getProperties()->setProperty("TestAdapter2.ThreadPool.Size", "5");
@@ -34,7 +34,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter2.ThreadPool.SizeWarn", "0");
communicator->getProperties()->setProperty("TestAdapter2.ThreadPool.Serialize", "1");
Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("TestAdapter2");
- adapter2->add(ICE_MAKE_SHARED(HoldI, timer, adapter2), communicator->stringToIdentity("hold"));
+ adapter2->add(ICE_MAKE_SHARED(HoldI, timer, adapter2), Ice::stringToIdentity("hold"));
adapter1->activate();
adapter2->activate();
diff --git a/cpp/test/Ice/impl/Server.cpp b/cpp/test/Ice/impl/Server.cpp
index b2f397730e5..91cb3580b0d 100644
--- a/cpp/test/Ice/impl/Server.cpp
+++ b/cpp/test/Ice/impl/Server.cpp
@@ -22,7 +22,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
string endpt = getTestEndpoint(communicator, 0);
communicator->getProperties()->setProperty("TestAdapter.Endpoints", endpt + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/impl/ServerAMD.cpp b/cpp/test/Ice/impl/ServerAMD.cpp
index d9488a27456..88a22188406 100644
--- a/cpp/test/Ice/impl/ServerAMD.cpp
+++ b/cpp/test/Ice/impl/ServerAMD.cpp
@@ -22,7 +22,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
string endpt = getTestEndpoint(communicator, 0);
communicator->getProperties()->setProperty("TestAdapter.Endpoints", endpt + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/info/Server.cpp b/cpp/test/Ice/info/Server.cpp
index 5d811ef4609..47c8bbb3332 100644
--- a/cpp/test/Ice/info/Server.cpp
+++ b/cpp/test/Ice/info/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010:udp -p 12010");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(TestI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/inheritance/Collocated.cpp b/cpp/test/Ice/inheritance/Collocated.cpp
index f0ff2a1e25f..0f640de9b8b 100644
--- a/cpp/test/Ice/inheritance/Collocated.cpp
+++ b/cpp/test/Ice/inheritance/Collocated.cpp
@@ -22,7 +22,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(InitialI, adapter);
- adapter->add(object, communicator->stringToIdentity("initial"));
+ adapter->add(object, Ice::stringToIdentity("initial"));
InitialPrxPtr allTests(const Ice::CommunicatorPtr&);
allTests(communicator);
diff --git a/cpp/test/Ice/inheritance/Server.cpp b/cpp/test/Ice/inheritance/Server.cpp
index abb805c10ca..8ec0c761076 100644
--- a/cpp/test/Ice/inheritance/Server.cpp
+++ b/cpp/test/Ice/inheritance/Server.cpp
@@ -21,7 +21,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(InitialI, adapter);
- adapter->add(object, communicator->stringToIdentity("initial"));
+ adapter->add(object, Ice::stringToIdentity("initial"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/location/AllTests.cpp b/cpp/test/Ice/location/AllTests.cpp
index 2a6966a80a6..cf48eb18b51 100644
--- a/cpp/test/Ice/location/AllTests.cpp
+++ b/cpp/test/Ice/location/AllTests.cpp
@@ -707,7 +707,7 @@ allTests(const Ice::CommunicatorPtr& communicator, const string& ref)
registry->addObject(adapter->add(ICE_MAKE_SHARED(HelloI), id));
adapter->activate();
- HelloPrxPtr helloPrx = ICE_CHECKED_CAST(HelloPrx, communicator->stringToProxy(communicator->identityToString(id)));
+ HelloPrxPtr helloPrx = ICE_CHECKED_CAST(HelloPrx, communicator->stringToProxy(identityToString(id)));
test(!helloPrx->ice_getConnection());
adapter->deactivate();
diff --git a/cpp/test/Ice/location/Server.cpp b/cpp/test/Ice/location/Server.cpp
index 8bb0485c07f..fb2f29a2226 100644
--- a/cpp/test/Ice/location/Server.cpp
+++ b/cpp/test/Ice/location/Server.cpp
@@ -37,16 +37,16 @@ run(int, char**, const Ice::CommunicatorPtr& communicator,
// 'servers' created with the server manager interface.
//
ServerLocatorRegistryPtr registry = ICE_MAKE_SHARED(ServerLocatorRegistry);
- registry->addObject(adapter->createProxy(communicator->stringToIdentity("ServerManager")));
+ registry->addObject(adapter->createProxy(Ice::stringToIdentity("ServerManager")));
Ice::ObjectPtr object = ICE_MAKE_SHARED(ServerManagerI, registry, initData);
- adapter->add(object, communicator->stringToIdentity("ServerManager"));
+ adapter->add(object, Ice::stringToIdentity("ServerManager"));
Ice::LocatorRegistryPrxPtr registryPrx =
ICE_UNCHECKED_CAST(Ice::LocatorRegistryPrx,
- adapter->add(registry, communicator->stringToIdentity("registry")));
+ adapter->add(registry, Ice::stringToIdentity("registry")));
Ice::LocatorPtr locator = ICE_MAKE_SHARED(ServerLocator, registry, registryPrx);
- adapter->add(locator, communicator->stringToIdentity("locator"));
+ adapter->add(locator, Ice::stringToIdentity("locator"));
adapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/location/TestI.cpp b/cpp/test/Ice/location/TestI.cpp
index 833d660a159..80e391b2a8d 100644
--- a/cpp/test/Ice/location/TestI.cpp
+++ b/cpp/test/Ice/location/TestI.cpp
@@ -69,9 +69,9 @@ ServerManagerI::startServer(const Ice::Current&)
adapter2->setLocator(ICE_UNCHECKED_CAST(Ice::LocatorPrx, locator));
Ice::ObjectPtr object = ICE_MAKE_SHARED(TestI, adapter, adapter2, _registry);
- _registry->addObject(adapter->add(object, serverCommunicator->stringToIdentity("test")));
- _registry->addObject(adapter->add(object, serverCommunicator->stringToIdentity("test2")));
- adapter->add(object, serverCommunicator->stringToIdentity("test3"));
+ _registry->addObject(adapter->add(object, Ice::stringToIdentity("test")));
+ _registry->addObject(adapter->add(object, Ice::stringToIdentity("test2")));
+ adapter->add(object, Ice::stringToIdentity("test3"));
adapter->activate();
adapter2->activate();
@@ -93,7 +93,7 @@ TestI::TestI(const Ice::ObjectAdapterPtr& adapter,
const ServerLocatorRegistryPtr& registry) :
_adapter1(adapter), _adapter2(adapter2), _registry(registry)
{
- _registry->addObject(_adapter1->add(ICE_MAKE_SHARED(HelloI), _adapter1->getCommunicator()->stringToIdentity("hello")));
+ _registry->addObject(_adapter1->add(ICE_MAKE_SHARED(HelloI), Ice::stringToIdentity("hello")));
}
void
@@ -106,19 +106,19 @@ HelloPrxPtr
TestI::getHello(const Ice::Current&)
{
return ICE_UNCHECKED_CAST(HelloPrx, _adapter1->createIndirectProxy(
- _adapter1->getCommunicator()->stringToIdentity("hello")));
+ Ice::stringToIdentity("hello")));
}
HelloPrxPtr
TestI::getReplicatedHello(const Ice::Current&)
{
- return ICE_UNCHECKED_CAST(HelloPrx, _adapter1->createProxy(_adapter1->getCommunicator()->stringToIdentity("hello")));
+ return ICE_UNCHECKED_CAST(HelloPrx, _adapter1->createProxy(Ice::stringToIdentity("hello")));
}
void
TestI::migrateHello(const Ice::Current&)
{
- const Ice::Identity id = _adapter1->getCommunicator()->stringToIdentity("hello");
+ const Ice::Identity id = Ice::stringToIdentity("hello");
try
{
_registry->addObject(_adapter2->add(_adapter1->remove(id), id));
diff --git a/cpp/test/Ice/metrics/Collocated.cpp b/cpp/test/Ice/metrics/Collocated.cpp
index 3bfed32f91a..dd314954612 100644
--- a/cpp/test/Ice/metrics/Collocated.cpp
+++ b/cpp/test/Ice/metrics/Collocated.cpp
@@ -22,12 +22,12 @@ run(int, char**, const Ice::CommunicatorPtr& communicator, const CommunicatorObs
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MetricsI), communicator->stringToIdentity("metrics"));
+ adapter->add(ICE_MAKE_SHARED(MetricsI), Ice::stringToIdentity("metrics"));
//adapter->activate(); // Don't activate OA to ensure collocation is used.
communicator->getProperties()->setProperty("ControllerAdapter.Endpoints", "default -p 12011");
Ice::ObjectAdapterPtr controllerAdapter = communicator->createObjectAdapter("ControllerAdapter");
- controllerAdapter->add(ICE_MAKE_SHARED(ControllerI, adapter), communicator->stringToIdentity("controller"));
+ controllerAdapter->add(ICE_MAKE_SHARED(ControllerI, adapter), Ice::stringToIdentity("controller"));
//controllerAdapter->activate(); // Don't activate OA to ensure collocation is used.
MetricsPrxPtr allTests(const Ice::CommunicatorPtr&, const CommunicatorObserverIPtr&);
diff --git a/cpp/test/Ice/metrics/Server.cpp b/cpp/test/Ice/metrics/Server.cpp
index 069f288c645..e5daf413204 100644
--- a/cpp/test/Ice/metrics/Server.cpp
+++ b/cpp/test/Ice/metrics/Server.cpp
@@ -20,12 +20,12 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MetricsI), communicator->stringToIdentity("metrics"));
+ adapter->add(ICE_MAKE_SHARED(MetricsI), Ice::stringToIdentity("metrics"));
adapter->activate();
communicator->getProperties()->setProperty("ControllerAdapter.Endpoints", "default -p 12011");
Ice::ObjectAdapterPtr controllerAdapter = communicator->createObjectAdapter("ControllerAdapter");
- controllerAdapter->add(ICE_MAKE_SHARED(ControllerI, adapter), communicator->stringToIdentity("controller"));
+ controllerAdapter->add(ICE_MAKE_SHARED(ControllerI, adapter), Ice::stringToIdentity("controller"));
controllerAdapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/metrics/ServerAMD.cpp b/cpp/test/Ice/metrics/ServerAMD.cpp
index 1d53c859792..40aee438374 100644
--- a/cpp/test/Ice/metrics/ServerAMD.cpp
+++ b/cpp/test/Ice/metrics/ServerAMD.cpp
@@ -20,12 +20,12 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MetricsI), communicator->stringToIdentity("metrics"));
+ adapter->add(ICE_MAKE_SHARED(MetricsI), Ice::stringToIdentity("metrics"));
adapter->activate();
communicator->getProperties()->setProperty("ControllerAdapter.Endpoints", "default -p 12011");
Ice::ObjectAdapterPtr controllerAdapter = communicator->createObjectAdapter("ControllerAdapter");
- controllerAdapter->add(ICE_MAKE_SHARED(ControllerI, adapter), communicator->stringToIdentity("controller"));
+ controllerAdapter->add(ICE_MAKE_SHARED(ControllerI, adapter), Ice::stringToIdentity("controller"));
controllerAdapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/networkProxy/Server.cpp b/cpp/test/Ice/networkProxy/Server.cpp
index d8c103dc721..07dac51360a 100644
--- a/cpp/test/Ice/networkProxy/Server.cpp
+++ b/cpp/test/Ice/networkProxy/Server.cpp
@@ -37,7 +37,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010:udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(TestI);
- adapter->add(object, communicator->stringToIdentity("test"));
+ adapter->add(object, Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/objects/Collocated.cpp b/cpp/test/Ice/objects/Collocated.cpp
index 9686c6ca559..6443ed13252 100644
--- a/cpp/test/Ice/objects/Collocated.cpp
+++ b/cpp/test/Ice/objects/Collocated.cpp
@@ -134,9 +134,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(InitialI, adapter), communicator->stringToIdentity("initial"));
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
- adapter->add(ICE_MAKE_SHARED(UnexpectedObjectExceptionTestI), communicator->stringToIdentity("uoet"));
+ adapter->add(ICE_MAKE_SHARED(InitialI, adapter), Ice::stringToIdentity("initial"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(UnexpectedObjectExceptionTestI), Ice::stringToIdentity("uoet"));
InitialPrxPtr allTests(const Ice::CommunicatorPtr&);
InitialPrxPtr initial = allTests(communicator);
// We must call shutdown even in the collocated case for cyclic dependency cleanup
diff --git a/cpp/test/Ice/objects/Server.cpp b/cpp/test/Ice/objects/Server.cpp
index 47ef551c54f..c63b2d7c415 100644
--- a/cpp/test/Ice/objects/Server.cpp
+++ b/cpp/test/Ice/objects/Server.cpp
@@ -68,10 +68,10 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(InitialI, adapter), communicator->stringToIdentity("initial"));
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(InitialI, adapter), Ice::stringToIdentity("initial"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
- adapter->add(ICE_MAKE_SHARED(UnexpectedObjectExceptionTestI), communicator->stringToIdentity("uoet"));
+ adapter->add(ICE_MAKE_SHARED(UnexpectedObjectExceptionTestI), Ice::stringToIdentity("uoet"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/operations/Collocated.cpp b/cpp/test/Ice/operations/Collocated.cpp
index 58cec8483b4..cfce947446d 100644
--- a/cpp/test/Ice/operations/Collocated.cpp
+++ b/cpp/test/Ice/operations/Collocated.cpp
@@ -21,7 +21,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
communicator->getProperties()->setProperty("TestAdapter.AdapterId", "test");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- Ice::ObjectPrxPtr prx = adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ Ice::ObjectPrxPtr prx = adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
//adapter->activate(); // Don't activate OA to ensure collocation is used.
test(!prx->ice_getConnection());
diff --git a/cpp/test/Ice/operations/Server.cpp b/cpp/test/Ice/operations/Server.cpp
index c291f5cb13e..80f89467fe7 100644
--- a/cpp/test/Ice/operations/Server.cpp
+++ b/cpp/test/Ice/operations/Server.cpp
@@ -21,7 +21,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
string endpt = getTestEndpoint(communicator, 0);
communicator->getProperties()->setProperty("TestAdapter.Endpoints", endpt + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/operations/ServerAMD.cpp b/cpp/test/Ice/operations/ServerAMD.cpp
index c52ea694234..f291f11a5a4 100644
--- a/cpp/test/Ice/operations/ServerAMD.cpp
+++ b/cpp/test/Ice/operations/ServerAMD.cpp
@@ -21,7 +21,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
string endpt = getTestEndpoint(communicator, 0);
communicator->getProperties()->setProperty("TestAdapter.Endpoints", endpt + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/operations/TestAMDI.cpp b/cpp/test/Ice/operations/TestAMDI.cpp
index d7c5ceff2c0..046bd3f6de6 100644
--- a/cpp/test/Ice/operations/TestAMDI.cpp
+++ b/cpp/test/Ice/operations/TestAMDI.cpp
@@ -210,7 +210,7 @@ MyDerivedClassI::opMyClassAsync(shared_ptr<Test::MyClassPrx> p1,
{
auto p2 = p1;
auto p3 = uncheckedCast<Test::MyClassPrx>(current.adapter->createProxy(
- current.adapter->getCommunicator()->stringToIdentity("noSuchIdentity")));
+ stringToIdentity("noSuchIdentity")));
response(uncheckedCast<Test::MyClassPrx>(current.adapter->createProxy(current.id)), p2, p3);
}
@@ -1126,7 +1126,7 @@ MyDerivedClassI::opMyClass_async(const Test::AMD_MyClass_opMyClassPtr& cb,
Test::MyClassPrxPtr p2 = p1;
Test::MyClassPrxPtr p3 = ICE_UNCHECKED_CAST(
Test::MyClassPrx, current.adapter->createProxy(
- current.adapter->getCommunicator()->stringToIdentity("noSuchIdentity")));
+ stringToIdentity("noSuchIdentity")));
cb->ice_response(ICE_UNCHECKED_CAST(Test::MyClassPrx, current.adapter->createProxy(current.id)), p2, p3);
}
diff --git a/cpp/test/Ice/operations/TestI.cpp b/cpp/test/Ice/operations/TestI.cpp
index 1c091594b36..ddbcffedd7f 100644
--- a/cpp/test/Ice/operations/TestI.cpp
+++ b/cpp/test/Ice/operations/TestI.cpp
@@ -164,7 +164,7 @@ MyDerivedClassI::opMyClass(ICE_IN(Test::MyClassPrxPtr) p1,
p2 = p1;
p3 = ICE_UNCHECKED_CAST(Test::MyClassPrx,
current.adapter->createProxy(
- current.adapter->getCommunicator()->stringToIdentity("noSuchIdentity")));
+ stringToIdentity("noSuchIdentity")));
return ICE_UNCHECKED_CAST(Test::MyClassPrx, current.adapter->createProxy(current.id));
}
diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp
index e0ba66c9c92..a8fbe72f7e9 100644
--- a/cpp/test/Ice/operations/Twoways.cpp
+++ b/cpp/test/Ice/operations/Twoways.cpp
@@ -351,9 +351,9 @@ twoways(const Ice::CommunicatorPtr& communicator, const Test::MyClassPrxPtr& p)
test(Ice::proxyIdentityAndFacetEqual(c1, p));
test(!Ice::proxyIdentityAndFacetEqual(c2, p));
test(Ice::proxyIdentityAndFacetEqual(r, p));
- test(c1->ice_getIdentity() == communicator->stringToIdentity("test"));
- test(c2->ice_getIdentity() == communicator->stringToIdentity("noSuchIdentity"));
- test(r->ice_getIdentity() == communicator->stringToIdentity("test"));
+ test(c1->ice_getIdentity() == Ice::stringToIdentity("test"));
+ test(c2->ice_getIdentity() == Ice::stringToIdentity("noSuchIdentity"));
+ test(r->ice_getIdentity() == Ice::stringToIdentity("test"));
r->opVoid();
c1->opVoid();
try
diff --git a/cpp/test/Ice/operations/TwowaysAMI.cpp b/cpp/test/Ice/operations/TwowaysAMI.cpp
index 1a40355816b..1e96c80cae4 100644
--- a/cpp/test/Ice/operations/TwowaysAMI.cpp
+++ b/cpp/test/Ice/operations/TwowaysAMI.cpp
@@ -170,9 +170,9 @@ public:
void opMyClass(const Test::MyClassPrxPtr& r, const Test::MyClassPrxPtr& c1, const Test::MyClassPrxPtr& c2)
{
- test(c1->ice_getIdentity() == _communicator->stringToIdentity("test"));
- test(c2->ice_getIdentity() == _communicator->stringToIdentity("noSuchIdentity"));
- test(r->ice_getIdentity() == _communicator->stringToIdentity("test"));
+ test(c1->ice_getIdentity() == Ice::stringToIdentity("test"));
+ test(c2->ice_getIdentity() == Ice::stringToIdentity("noSuchIdentity"));
+ test(r->ice_getIdentity() == Ice::stringToIdentity("test"));
//
// We can't do the callbacks below in connection serialization mode.
diff --git a/cpp/test/Ice/optional/Server.cpp b/cpp/test/Ice/optional/Server.cpp
index fe22e6abe87..aacddd084ed 100644
--- a/cpp/test/Ice/optional/Server.cpp
+++ b/cpp/test/Ice/optional/Server.cpp
@@ -21,7 +21,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(InitialI), communicator->stringToIdentity("initial"));
+ adapter->add(ICE_MAKE_SHARED(InitialI), Ice::stringToIdentity("initial"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/optional/ServerAMD.cpp b/cpp/test/Ice/optional/ServerAMD.cpp
index 9b4c93e894b..c47b19721b5 100644
--- a/cpp/test/Ice/optional/ServerAMD.cpp
+++ b/cpp/test/Ice/optional/ServerAMD.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(InitialI), communicator->stringToIdentity("initial"));
+ adapter->add(ICE_MAKE_SHARED(InitialI), Ice::stringToIdentity("initial"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/proxy/AllTests.cpp b/cpp/test/Ice/proxy/AllTests.cpp
index 0bcaccfff27..bcded5cb5b2 100644
--- a/cpp/test/Ice/proxy/AllTests.cpp
+++ b/cpp/test/Ice/proxy/AllTests.cpp
@@ -258,15 +258,11 @@ allTests(const Ice::CommunicatorPtr& communicator)
// Test for bug ICE-5543: escaped escapes in stringToIdentity
//
Ice::Identity id = { "test", ",X2QNUAzSBcJ_e$AV;E\\" };
- Ice::Identity id2 = communicator->stringToIdentity(communicator->identityToString(id));
- test(id == id2);
- id2 = Ice::stringToIdentity(Ice::identityToString(id));
+ Ice::Identity id2 = Ice::stringToIdentity(Ice::identityToString(id));
test(id == id2);
id.name = "test";
id.category = ",X2QNUAz\\SB\\/cJ_e$AV;E\\\\";
- id2 = communicator->stringToIdentity(communicator->identityToString(id));
- test(id == id2);
id2 = Ice::stringToIdentity(Ice::identityToString(id));
test(id == id2);
@@ -448,8 +444,10 @@ allTests(const Ice::CommunicatorPtr& communicator)
cout << "ok" << endl;
cout << "testing proxy methods... " << flush;
- test(communicator->identityToString(base->ice_identity(communicator->stringToIdentity("other"))->ice_getIdentity())
- == "other");
+
+// Deprecated
+// test(communicator->identityToString(base->ice_identity(communicator->stringToIdentity("other"))->ice_getIdentity())
+// == "other");
test(Ice::identityToString(base->ice_identity(Ice::stringToIdentity("other"))->ice_getIdentity()) == "other");
test(base->ice_facet("facet")->ice_getFacet() == "facet");
test(base->ice_adapterId("id")->ice_getAdapterId() == "id");
diff --git a/cpp/test/Ice/proxy/Collocated.cpp b/cpp/test/Ice/proxy/Collocated.cpp
index aa651a1da15..2c7e91d3106 100644
--- a/cpp/test/Ice/proxy/Collocated.cpp
+++ b/cpp/test/Ice/proxy/Collocated.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
//adapter->activate(); // Don't activate OA to ensure collocation is used.
Test::MyClassPrxPtr allTests(const Ice::CommunicatorPtr&);
diff --git a/cpp/test/Ice/proxy/Server.cpp b/cpp/test/Ice/proxy/Server.cpp
index 15c8418a051..c0a9a8761c5 100644
--- a/cpp/test/Ice/proxy/Server.cpp
+++ b/cpp/test/Ice/proxy/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/proxy/ServerAMD.cpp b/cpp/test/Ice/proxy/ServerAMD.cpp
index 432c34f9b53..db603a4570a 100644
--- a/cpp/test/Ice/proxy/ServerAMD.cpp
+++ b/cpp/test/Ice/proxy/ServerAMD.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyDerivedClassI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/retry/Collocated.cpp b/cpp/test/Ice/retry/Collocated.cpp
index 597fc7a65d7..1c83cb7c996 100644
--- a/cpp/test/Ice/retry/Collocated.cpp
+++ b/cpp/test/Ice/retry/Collocated.cpp
@@ -22,7 +22,7 @@ void
setupObjectAdapter(const Ice::CommunicatorPtr& communicator)
{
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("");
- adapter->add(ICE_MAKE_SHARED(RetryI), communicator->stringToIdentity("retry"));
+ adapter->add(ICE_MAKE_SHARED(RetryI), Ice::stringToIdentity("retry"));
//adapter->activate(); // Don't activate OA to ensure collocation is used.
}
diff --git a/cpp/test/Ice/retry/Server.cpp b/cpp/test/Ice/retry/Server.cpp
index 8a42f1e389e..a0e37557fbf 100644
--- a/cpp/test/Ice/retry/Server.cpp
+++ b/cpp/test/Ice/retry/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(RetryI), communicator->stringToIdentity("retry"));
+ adapter->add(ICE_MAKE_SHARED(RetryI), Ice::stringToIdentity("retry"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/servantLocator/Collocated.cpp b/cpp/test/Ice/servantLocator/Collocated.cpp
index 13fe3b76e4b..aeb02c0e36d 100644
--- a/cpp/test/Ice/servantLocator/Collocated.cpp
+++ b/cpp/test/Ice/servantLocator/Collocated.cpp
@@ -96,8 +96,8 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
adapter->addServantLocator(ICE_MAKE_SHARED(ServantLocatorI, ""), "");
adapter->addServantLocator(ICE_MAKE_SHARED(ServantLocatorI, "category"), "category");
- adapter->add(ICE_MAKE_SHARED(TestI), communicator->stringToIdentity("asm"));
- adapter->add(ICE_MAKE_SHARED(TestActivationI), communicator->stringToIdentity("test/activation"));
+ adapter->add(ICE_MAKE_SHARED(TestI), Ice::stringToIdentity("asm"));
+ adapter->add(ICE_MAKE_SHARED(TestActivationI), Ice::stringToIdentity("test/activation"));
Test::TestIntfPrxPtr allTests(const CommunicatorPtr&);
allTests(communicator);
diff --git a/cpp/test/Ice/servantLocator/Server.cpp b/cpp/test/Ice/servantLocator/Server.cpp
index 6b4a38dc772..c5c78e23881 100644
--- a/cpp/test/Ice/servantLocator/Server.cpp
+++ b/cpp/test/Ice/servantLocator/Server.cpp
@@ -97,8 +97,8 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
adapter->addServantLocator(ICE_MAKE_SHARED(ServantLocatorI, ""), "");
adapter->addServantLocator(ICE_MAKE_SHARED(ServantLocatorI, "category"), "category");
- adapter->add(ICE_MAKE_SHARED(TestI), communicator->stringToIdentity("asm"));
- adapter->add(ICE_MAKE_SHARED(TestActivationI), communicator->stringToIdentity("test/activation"));
+ adapter->add(ICE_MAKE_SHARED(TestI), Ice::stringToIdentity("asm"));
+ adapter->add(ICE_MAKE_SHARED(TestActivationI), Ice::stringToIdentity("test/activation"));
adapter->activate();
TEST_READY
adapter->waitForDeactivate();
diff --git a/cpp/test/Ice/servantLocator/ServerAMD.cpp b/cpp/test/Ice/servantLocator/ServerAMD.cpp
index b51708b76cb..740d6072b33 100644
--- a/cpp/test/Ice/servantLocator/ServerAMD.cpp
+++ b/cpp/test/Ice/servantLocator/ServerAMD.cpp
@@ -96,8 +96,8 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
adapter->addServantLocator(ICE_MAKE_SHARED(ServantLocatorAMDI, ""), "");
adapter->addServantLocator(ICE_MAKE_SHARED(ServantLocatorAMDI, "category"), "category");
- adapter->add(ICE_MAKE_SHARED(TestAMDI), communicator->stringToIdentity("asm"));
- adapter->add(ICE_MAKE_SHARED(TestActivationI), communicator->stringToIdentity("test/activation"));
+ adapter->add(ICE_MAKE_SHARED(TestAMDI), Ice::stringToIdentity("asm"));
+ adapter->add(ICE_MAKE_SHARED(TestActivationI), Ice::stringToIdentity("test/activation"));
adapter->activate();
TEST_READY
adapter->waitForDeactivate();
diff --git a/cpp/test/Ice/slicing/exceptions/Server.cpp b/cpp/test/Ice/slicing/exceptions/Server.cpp
index 2cd8dba2995..909b87b7fc0 100644
--- a/cpp/test/Ice/slicing/exceptions/Server.cpp
+++ b/cpp/test/Ice/slicing/exceptions/Server.cpp
@@ -22,7 +22,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
properties->setProperty("Ice.Warn.Dispatch", "0");
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + " -t 2000");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(TestI), communicator->stringToIdentity("Test"));
+ adapter->add(ICE_MAKE_SHARED(TestI), Ice::stringToIdentity("Test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp b/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp
index 5b67af38a4f..c5534dcc207 100644
--- a/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp
+++ b/cpp/test/Ice/slicing/exceptions/ServerAMD.cpp
@@ -22,7 +22,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
properties->setProperty("Ice.Warn.Dispatch", "0");
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + " -t 2000");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(TestI), communicator->stringToIdentity("Test"));
+ adapter->add(ICE_MAKE_SHARED(TestI), Ice::stringToIdentity("Test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/slicing/objects/Server.cpp b/cpp/test/Ice/slicing/objects/Server.cpp
index 62221669931..093997a59ef 100644
--- a/cpp/test/Ice/slicing/objects/Server.cpp
+++ b/cpp/test/Ice/slicing/objects/Server.cpp
@@ -23,7 +23,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + " -t 2000");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(TestI);
- adapter->add(object, communicator->stringToIdentity("Test"));
+ adapter->add(object, Ice::stringToIdentity("Test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/slicing/objects/ServerAMD.cpp b/cpp/test/Ice/slicing/objects/ServerAMD.cpp
index 293676daa27..28e3b390606 100644
--- a/cpp/test/Ice/slicing/objects/ServerAMD.cpp
+++ b/cpp/test/Ice/slicing/objects/ServerAMD.cpp
@@ -23,7 +23,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + " -t 2000");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(TestI);
- adapter->add(object, communicator->stringToIdentity("Test"));
+ adapter->add(object, Ice::stringToIdentity("Test"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/stringConverter/Server.cpp b/cpp/test/Ice/stringConverter/Server.cpp
index ce592e19ba9..3e3b6e17541 100644
--- a/cpp/test/Ice/stringConverter/Server.cpp
+++ b/cpp/test/Ice/stringConverter/Server.cpp
@@ -45,7 +45,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(MyObjectI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(MyObjectI), Ice::stringToIdentity("test"));
adapter->activate();
TEST_READY
diff --git a/cpp/test/Ice/threadPoolPriority/Server.cpp b/cpp/test/Ice/threadPoolPriority/Server.cpp
index bde7ad25bff..b1957badf2f 100644
--- a/cpp/test/Ice/threadPoolPriority/Server.cpp
+++ b/cpp/test/Ice/threadPoolPriority/Server.cpp
@@ -49,7 +49,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(PriorityI, adapter);
- adapter->add(object, communicator->stringToIdentity("test"));
+ adapter->add(object, Ice::stringToIdentity("test"));
adapter->activate();
communicator->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp b/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp
index 934ba14b99f..3d67cc16c3f 100644
--- a/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp
+++ b/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp
@@ -53,7 +53,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
#endif
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(PriorityI, adapter);
- adapter->add(object, communicator->stringToIdentity("test"));
+ adapter->add(object, Ice::stringToIdentity("test"));
adapter->activate();
communicator->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/Ice/timeout/Server.cpp b/cpp/test/Ice/timeout/Server.cpp
index d31e626034e..f355ce381fa 100644
--- a/cpp/test/Ice/timeout/Server.cpp
+++ b/cpp/test/Ice/timeout/Server.cpp
@@ -21,7 +21,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + ":udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = ICE_MAKE_SHARED(TimeoutI);
- adapter->add(object, communicator->stringToIdentity("timeout"));
+ adapter->add(object, Ice::stringToIdentity("timeout"));
adapter->activate();
TEST_READY
communicator->waitForShutdown();
diff --git a/cpp/test/Ice/udp/Server.cpp b/cpp/test/Ice/udp/Server.cpp
index 77abcdf2d03..9574f504ed7 100644
--- a/cpp/test/Ice/udp/Server.cpp
+++ b/cpp/test/Ice/udp/Server.cpp
@@ -26,14 +26,14 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
os << "tcp -p " << (12010 + num);
properties->setProperty("ControlAdapter.Endpoints", os.str());
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("ControlAdapter");
- adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("control"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("control"));
adapter->activate();
if(num == 0)
{
properties->setProperty("TestAdapter.Endpoints", "udp -p 12010");
Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("TestAdapter");
- adapter2->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ adapter2->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
adapter2->activate();
}
@@ -52,7 +52,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
}
properties->setProperty("McastTestAdapter.Endpoints", endpoint);
Ice::ObjectAdapterPtr mcastAdapter = communicator->createObjectAdapter("McastTestAdapter");
- mcastAdapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
+ mcastAdapter->add(ICE_MAKE_SHARED(TestIntfI), Ice::stringToIdentity("test"));
mcastAdapter->activate();
TEST_READY
diff --git a/cpp/test/IceBox/configuration/Service.cpp b/cpp/test/IceBox/configuration/Service.cpp
index ee1c1389aaf..2d369d3ef2c 100644
--- a/cpp/test/IceBox/configuration/Service.cpp
+++ b/cpp/test/IceBox/configuration/Service.cpp
@@ -54,7 +54,7 @@ void
ServiceI::start(const string& name, const CommunicatorPtr& communicator, const StringSeq& args)
{
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter(name + "OA");
- adapter->add(ICE_MAKE_SHARED(TestI, args), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestI, args), stringToIdentity("test"));
adapter->activate();
}
diff --git a/cpp/test/IceDiscovery/simple/Server.cpp b/cpp/test/IceDiscovery/simple/Server.cpp
index 5b7660acd67..ef543fa090e 100644
--- a/cpp/test/IceDiscovery/simple/Server.cpp
+++ b/cpp/test/IceDiscovery/simple/Server.cpp
@@ -37,7 +37,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
ostringstream os;
os << "controller" << num;
- adapter->add(ICE_MAKE_SHARED(ControllerI), communicator->stringToIdentity(os.str()));
+ adapter->add(ICE_MAKE_SHARED(ControllerI), Ice::stringToIdentity(os.str()));
}
adapter->activate();
diff --git a/cpp/test/IceGrid/activation/Server.cpp b/cpp/test/IceGrid/activation/Server.cpp
index 54b2aa418c1..e614fdaf02b 100644
--- a/cpp/test/IceGrid/activation/Server.cpp
+++ b/cpp/test/IceGrid/activation/Server.cpp
@@ -36,7 +36,7 @@ Server::run(int argc, char* argv[])
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter");
TestI* test = new TestI();
Ice::ObjectPtr obj = test;
- adapter->add(test, communicator()->stringToIdentity(properties->getProperty("Ice.Admin.ServerId")));
+ adapter->add(test, Ice::stringToIdentity(properties->getProperty("Ice.Admin.ServerId")));
int delay = properties->getPropertyAsInt("ActivationDelay");
if(delay > 0)
diff --git a/cpp/test/IceGrid/allocation/AllTests.cpp b/cpp/test/IceGrid/allocation/AllTests.cpp
index 12473e73d3b..0a86f1011f3 100644
--- a/cpp/test/IceGrid/allocation/AllTests.cpp
+++ b/cpp/test/IceGrid/allocation/AllTests.cpp
@@ -192,7 +192,7 @@ public:
os << "stress-" << IceUtilInternal::random(6) + 1;
try
{
- return session->allocateObjectById(_communicator->stringToIdentity(os.str()));
+ return session->allocateObjectById(Ice::stringToIdentity(os.str()));
}
catch(const AllocationTimeoutException&)
{
@@ -227,7 +227,7 @@ public:
CallbackPtr asyncCB = new Callback();
IceGrid::Callback_Session_allocateObjectByIdPtr cb =
IceGrid::newCallback_Session_allocateObjectById(asyncCB, &Callback::response, &Callback::exception);
- session->begin_allocateObjectById(_communicator->stringToIdentity(os.str()), cb);
+ session->begin_allocateObjectById(Ice::stringToIdentity(os.str()), cb);
session->destroy();
}
@@ -307,19 +307,19 @@ allTests(const Ice::CommunicatorPtr& communicator)
cout << "testing allocate object by identity... " << flush;
- Ice::Identity allocatable = communicator->stringToIdentity("allocatable");
- Ice::Identity allocatablebis = communicator->stringToIdentity("allocatablebis");
+ Ice::Identity allocatable = Ice::stringToIdentity("allocatable");
+ Ice::Identity allocatablebis = Ice::stringToIdentity("allocatablebis");
try
{
- session1->allocateObjectById(communicator->stringToIdentity("dummy"));
+ session1->allocateObjectById(Ice::stringToIdentity("dummy"));
}
catch(const ObjectNotRegisteredException&)
{
}
try
{
- session1->releaseObject(communicator->stringToIdentity("dummy"));
+ session1->releaseObject(Ice::stringToIdentity("dummy"));
}
catch(const ObjectNotRegisteredException&)
{
@@ -327,7 +327,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
- session1->allocateObjectById(communicator->stringToIdentity("nonallocatable"));
+ session1->allocateObjectById(Ice::stringToIdentity("nonallocatable"));
test(false);
}
catch(const AllocationException&)
@@ -340,7 +340,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
- session2->allocateObjectById(communicator->stringToIdentity("nonallocatable"));
+ session2->allocateObjectById(Ice::stringToIdentity("nonallocatable"));
test(false);
}
catch(const AllocationException&)
@@ -353,7 +353,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
- session1->releaseObject(communicator->stringToIdentity("nonallocatable"));
+ session1->releaseObject(Ice::stringToIdentity("nonallocatable"));
test(false);
}
catch(const AllocationException&)
@@ -366,7 +366,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
- session2->releaseObject(communicator->stringToIdentity("nonallocatable"));
+ session2->releaseObject(Ice::stringToIdentity("nonallocatable"));
test(false);
}
catch(const AllocationException&)
@@ -642,8 +642,8 @@ allTests(const Ice::CommunicatorPtr& communicator)
session1->setAllocationTimeout(0);
session2->setAllocationTimeout(0);
- Ice::Identity allocatable3 = communicator->stringToIdentity("allocatable3");
- Ice::Identity allocatable4 = communicator->stringToIdentity("allocatable4");
+ Ice::Identity allocatable3 = Ice::stringToIdentity("allocatable3");
+ Ice::Identity allocatable4 = Ice::stringToIdentity("allocatable4");
session1->allocateObjectById(allocatable3);
try
@@ -777,8 +777,8 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
}
test(session1->allocateObjectByType("::TestMultipleByServer"));
- session1->releaseObject(communicator->stringToIdentity("allocatable31"));
- session1->releaseObject(communicator->stringToIdentity("allocatable41"));
+ session1->releaseObject(Ice::stringToIdentity("allocatable31"));
+ session1->releaseObject(Ice::stringToIdentity("allocatable41"));
test(session2->allocateObjectByType("::TestMultipleByServer"));
try
{
@@ -789,8 +789,8 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
}
test(session2->allocateObjectByType("::TestMultipleByServer"));
- session2->releaseObject(communicator->stringToIdentity("allocatable31"));
- session2->releaseObject(communicator->stringToIdentity("allocatable41"));
+ session2->releaseObject(Ice::stringToIdentity("allocatable31"));
+ session2->releaseObject(Ice::stringToIdentity("allocatable41"));
Ice::ObjectPrx obj1 = session1->allocateObjectByType("::TestMultipleServer");
test(obj1);
diff --git a/cpp/test/IceGrid/allocation/PermissionsVerifier.cpp b/cpp/test/IceGrid/allocation/PermissionsVerifier.cpp
index d39a9eb1dce..54fe5be7c01 100644
--- a/cpp/test/IceGrid/allocation/PermissionsVerifier.cpp
+++ b/cpp/test/IceGrid/allocation/PermissionsVerifier.cpp
@@ -30,7 +30,7 @@ public:
virtual int run(int, char*[])
{
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("PermissionsVerifier");
- adapter->add(new PermissionsVerifierI, communicator()->stringToIdentity("PermissionsVerifier"));
+ adapter->add(new PermissionsVerifierI, Ice::stringToIdentity("PermissionsVerifier"));
adapter->activate();
communicator()->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/IceGrid/allocation/Server.cpp b/cpp/test/IceGrid/allocation/Server.cpp
index 8e9931a3e91..113ccaa4846 100644
--- a/cpp/test/IceGrid/allocation/Server.cpp
+++ b/cpp/test/IceGrid/allocation/Server.cpp
@@ -32,16 +32,16 @@ Server::run(int argc, char* argv[])
string name = properties->getProperty("Ice.ProgramName");
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server");
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("nonallocatable"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable1"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable2"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable3"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable4"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable11"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable21"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable31"));
- adapter->add(new TestI(properties), communicator()->stringToIdentity("allocatable41"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("nonallocatable"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable1"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable2"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable3"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable4"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable11"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable21"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable31"));
+ adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable41"));
shutdownOnInterrupt();
try
diff --git a/cpp/test/IceGrid/deployer/AllTests.cpp b/cpp/test/IceGrid/deployer/AllTests.cpp
index 47d984c302c..301692a25aa 100644
--- a/cpp/test/IceGrid/deployer/AllTests.cpp
+++ b/cpp/test/IceGrid/deployer/AllTests.cpp
@@ -68,7 +68,7 @@ public:
bool
operator()(const Ice::ObjectPrx& p1, const string& id) const
{
- return p1->ice_getIdentity() == _communicator->stringToIdentity(id);
+ return p1->ice_getIdentity() == Ice::stringToIdentity(id);
}
private:
@@ -429,16 +429,16 @@ allTests(const Ice::CommunicatorPtr& comm)
test(find_if(objs.begin(), objs.end(), bind2nd(ProxyIdentityEqual(comm),"ReplicatedObject")) != objs.end());
{
- test(comm->identityToString(query->findObjectByType("::TestId1")->ice_getIdentity()) == "cat/name1");
- test(comm->identityToString(query->findObjectByType("::TestId2")->ice_getIdentity()) == "cat1/name1");
- test(comm->identityToString(query->findObjectByType("::TestId3")->ice_getIdentity()) == "cat1/name1-bis");
- test(comm->identityToString(query->findObjectByType("::TestId4")->ice_getIdentity()) == "c2\\/c2/n2\\/n2");
- test(comm->identityToString(query->findObjectByType("::TestId5")->ice_getIdentity()) == "n2\\/n2");
+ test(identityToString(query->findObjectByType("::TestId1")->ice_getIdentity()) == "cat/name1");
+ test(identityToString(query->findObjectByType("::TestId2")->ice_getIdentity()) == "cat1/name1");
+ test(identityToString(query->findObjectByType("::TestId3")->ice_getIdentity()) == "cat1/name1-bis");
+ test(identityToString(query->findObjectByType("::TestId4")->ice_getIdentity()) == "c2\\/c2/n2\\/n2");
+ test(identityToString(query->findObjectByType("::TestId5")->ice_getIdentity()) == "n2\\/n2");
}
{
Ice::ObjectPrx obj = query->findObjectByType("::Test");
- string id = comm->identityToString(obj->ice_getIdentity());
+ string id = identityToString(obj->ice_getIdentity());
test(id == "Server1" || id == "Server2" || id == "SimpleServer" ||
id == "IceBox1-Service1" || id == "IceBox1-Service2" ||
id == "IceBox2-Service1" || id == "IceBox2-Service2" ||
@@ -447,7 +447,7 @@ allTests(const Ice::CommunicatorPtr& comm)
{
Ice::ObjectPrx obj = query->findObjectByTypeOnLeastLoadedNode("::Test", LoadSample5);
- string id = comm->identityToString(obj->ice_getIdentity());
+ string id = identityToString(obj->ice_getIdentity());
test(id == "Server1" || id == "Server2" || id == "SimpleServer" ||
id == "IceBox1-Service1" || id == "IceBox1-Service2" ||
id == "IceBox2-Service1" || id == "IceBox2-Service2" ||
diff --git a/cpp/test/IceGrid/deployer/Server.cpp b/cpp/test/IceGrid/deployer/Server.cpp
index 42c9ebef1d2..5c5f6f821db 100644
--- a/cpp/test/IceGrid/deployer/Server.cpp
+++ b/cpp/test/IceGrid/deployer/Server.cpp
@@ -42,7 +42,7 @@ Server::run(int argc, char* argv[])
adapter = communicator()->createObjectAdapter("Server");
Ice::ObjectPtr object = new TestI(properties);
- adapter->add(object, communicator()->stringToIdentity(name));
+ adapter->add(object, Ice::stringToIdentity(name));
shutdownOnInterrupt();
try
{
diff --git a/cpp/test/IceGrid/deployer/Service.cpp b/cpp/test/IceGrid/deployer/Service.cpp
index b9587ec1889..c5905ea722e 100644
--- a/cpp/test/IceGrid/deployer/Service.cpp
+++ b/cpp/test/IceGrid/deployer/Service.cpp
@@ -58,7 +58,7 @@ ServiceI::start(const string& name,
Ice::PropertiesPtr properties = communicator->getProperties();
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter(name);
Ice::ObjectPtr object = new TestI(properties);
- adapter->add(object, communicator->stringToIdentity(properties->getProperty(name + ".Identity")));
+ adapter->add(object, stringToIdentity(properties->getProperty(name + ".Identity")));
adapter->activate();
}
diff --git a/cpp/test/IceGrid/distribution/Server.cpp b/cpp/test/IceGrid/distribution/Server.cpp
index 2d7f88df87d..c86e876bbf9 100644
--- a/cpp/test/IceGrid/distribution/Server.cpp
+++ b/cpp/test/IceGrid/distribution/Server.cpp
@@ -33,7 +33,7 @@ Server::run(int argc, char* argv[])
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server");
Ice::ObjectPtr object = new TestI(properties);
- adapter->add(object, communicator()->stringToIdentity(name));
+ adapter->add(object, Ice::stringToIdentity(name));
shutdownOnInterrupt();
try
diff --git a/cpp/test/IceGrid/noRestartUpdate/AllTests.cpp b/cpp/test/IceGrid/noRestartUpdate/AllTests.cpp
index 95f7ca1a58c..97a85507c05 100644
--- a/cpp/test/IceGrid/noRestartUpdate/AllTests.cpp
+++ b/cpp/test/IceGrid/noRestartUpdate/AllTests.cpp
@@ -193,7 +193,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
adapter.serverLifetime = true;
addProperty(server, "Server.Endpoints", "default");
ObjectDescriptor object;
- object.id = communicator->stringToIdentity("${server}");
+ object.id = Ice::stringToIdentity("${server}");
object.type = "::Test::TestIntf";
adapter.objects.push_back(object);
server->adapters.push_back(adapter);
@@ -204,7 +204,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
update.nodes[0].servers[0]->id = "Server2";
update.nodes[0].servers[0]->adapters[0].id = "ServerAdapter2";
- update.nodes[0].servers[0]->adapters[0].objects[0].id = communicator->stringToIdentity("test2");
+ update.nodes[0].servers[0]->adapters[0].objects[0].id = Ice::stringToIdentity("test2");
try
{
admin->updateApplicationWithoutRestart(update);
@@ -240,7 +240,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
adapter.serverLifetime = true;
addProperty(server, "Server.Endpoints", "default");
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("${server}");
+ object.id = Ice::stringToIdentity("${server}");
object.type = "::Test::TestIntf";
adapter.objects.push_back(object);
server->adapters.push_back(adapter);
@@ -456,7 +456,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(info.descriptor);
test(info.descriptor->adapters.size() == 1);
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("testfoo");
+ object.id = Ice::stringToIdentity("testfoo");
info.descriptor->adapters[0].objects.push_back(object);
update = empty;
update.nodes[0].servers.push_back(info.descriptor);
@@ -478,7 +478,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
info = admin->getServerInfo("Server");
test(info.descriptor);
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
info.descriptor->adapters[0].allocatables.push_back(object);
update = empty;
update.nodes[0].servers.push_back(info.descriptor);
@@ -536,7 +536,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
adapter.registerProcess = false;
adapter.serverLifetime = false;
addProperty(service, "${service}.Endpoints", "default");
- object.id = communicator->stringToIdentity("${server}.${service}");
+ object.id = Ice::stringToIdentity("${server}.${service}");
addProperty(service, "${service}.Identity", "${server}.${service}");
adapter.objects.push_back(object);
service->adapters.push_back(adapter);
diff --git a/cpp/test/IceGrid/noRestartUpdate/Server.cpp b/cpp/test/IceGrid/noRestartUpdate/Server.cpp
index 492fe695d1c..ad1d3fa2ae9 100644
--- a/cpp/test/IceGrid/noRestartUpdate/Server.cpp
+++ b/cpp/test/IceGrid/noRestartUpdate/Server.cpp
@@ -33,7 +33,7 @@ Server::run(int argc, char* argv[])
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server");
Ice::ObjectPtr object = new TestI(adapter, properties);
- adapter->add(object, communicator()->stringToIdentity(name));
+ adapter->add(object, Ice::stringToIdentity(name));
shutdownOnInterrupt();
try
diff --git a/cpp/test/IceGrid/noRestartUpdate/Service.cpp b/cpp/test/IceGrid/noRestartUpdate/Service.cpp
index b0f86c594e8..a07b62b74db 100644
--- a/cpp/test/IceGrid/noRestartUpdate/Service.cpp
+++ b/cpp/test/IceGrid/noRestartUpdate/Service.cpp
@@ -58,7 +58,7 @@ ServiceI::start(const string& name,
Ice::PropertiesPtr properties = communicator->getProperties();
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter(name);
Ice::ObjectPtr object = new TestI(adapter, properties);
- adapter->add(object, communicator->stringToIdentity(properties->getProperty(name + ".Identity")));
+ adapter->add(object, stringToIdentity(properties->getProperty(name + ".Identity")));
adapter->activate();
}
diff --git a/cpp/test/IceGrid/replicaGroup/Server.cpp b/cpp/test/IceGrid/replicaGroup/Server.cpp
index bc3dcfa1a14..938c6ea3d11 100644
--- a/cpp/test/IceGrid/replicaGroup/Server.cpp
+++ b/cpp/test/IceGrid/replicaGroup/Server.cpp
@@ -26,8 +26,8 @@ Server::run(int, char**)
Ice::ObjectAdapterPtr adpt = communicator()->createObjectAdapter("ReplicatedAdapter");
Ice::PropertiesPtr properties = communicator()->getProperties();
Ice::ObjectPtr object = new TestI(properties);
- adpt->add(object, communicator()->stringToIdentity(properties->getProperty("Ice.ProgramName")));
- adpt->add(object, communicator()->stringToIdentity(properties->getProperty("Identity")));
+ adpt->add(object, Ice::stringToIdentity(properties->getProperty("Ice.ProgramName")));
+ adpt->add(object, Ice::stringToIdentity(properties->getProperty("Identity")));
shutdownOnInterrupt();
try
{
diff --git a/cpp/test/IceGrid/replicaGroup/Service.cpp b/cpp/test/IceGrid/replicaGroup/Service.cpp
index 7cf76382e6a..b87ab36faeb 100644
--- a/cpp/test/IceGrid/replicaGroup/Service.cpp
+++ b/cpp/test/IceGrid/replicaGroup/Service.cpp
@@ -57,8 +57,8 @@ ServiceI::start(const string& name,
{
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter(name);
Ice::ObjectPtr object = new TestI(communicator->getProperties());
- adapter->add(object, communicator->stringToIdentity(name));
- adapter->add(object, communicator->stringToIdentity(communicator->getProperties()->getProperty("Identity")));
+ adapter->add(object, stringToIdentity(name));
+ adapter->add(object, stringToIdentity(communicator->getProperties()->getProperty("Identity")));
adapter->activate();
}
diff --git a/cpp/test/IceGrid/replication/AllTests.cpp b/cpp/test/IceGrid/replication/AllTests.cpp
index 09c197e612e..05a64cf0b27 100644
--- a/cpp/test/IceGrid/replication/AllTests.cpp
+++ b/cpp/test/IceGrid/replication/AllTests.cpp
@@ -314,17 +314,17 @@ allTests(const Ice::CommunicatorPtr& comm)
Ice::EndpointSeq endpoints;
ObjectInfo info;
- info = masterAdmin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator"));
- ObjectInfo info1 = slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator"));
- test(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator")) == info);
+ info = masterAdmin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator"));
+ ObjectInfo info1 = slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator"));
+ test(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator")) == info);
test(info.type == Ice::Locator::ice_staticId());
endpoints = info.proxy->ice_getEndpoints();
test(endpoints.size() == 2);
test(endpoints[0]->toString().find("-p 12050") != string::npos);
test(endpoints[1]->toString().find("-p 12051") != string::npos);
- info = masterAdmin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query"));
- test(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query")) == info);
+ info = masterAdmin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query"));
+ test(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query")) == info);
test(info.type == IceGrid::Query::ice_staticId());
endpoints = info.proxy->ice_getEndpoints();
test(endpoints.size() == 2);
@@ -334,15 +334,15 @@ allTests(const Ice::CommunicatorPtr& comm)
admin->startServer("Slave2");
slave2Admin = createAdminSession(slave2Locator, "Slave2");
- info = masterAdmin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator"));
+ info = masterAdmin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator"));
// We eventually need to wait here for the update of the replicated objects to propagate to the replica.
int nRetry = 0;
- while(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator")) != info && nRetry < maxRetry)
+ while(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator")) != info && nRetry < maxRetry)
{
IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(sleepTime));
++nRetry;
}
- test(slave2Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator")) == info);
+ test(slave2Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator")) == info);
test(info.type == Ice::Locator::ice_staticId());
endpoints = info.proxy->ice_getEndpoints();
test(endpoints.size() == 3);
@@ -350,15 +350,15 @@ allTests(const Ice::CommunicatorPtr& comm)
test(endpoints[1]->toString().find("-p 12051") != string::npos);
test(endpoints[2]->toString().find("-p 12052") != string::npos);
- info = masterAdmin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query"));
+ info = masterAdmin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query"));
// We eventually need to wait here for the update of the replicated objects to propagate to the replica.
nRetry = 0;
- while(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query")) != info && nRetry < maxRetry)
+ while(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query")) != info && nRetry < maxRetry)
{
IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(sleepTime));
++nRetry;
}
- test(slave2Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query")) == info);
+ test(slave2Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query")) == info);
test(info.type == IceGrid::Query::ice_staticId());
endpoints = info.proxy->ice_getEndpoints();
test(endpoints.size() == 3);
@@ -369,29 +369,29 @@ allTests(const Ice::CommunicatorPtr& comm)
slave2Admin->shutdown();
waitForServerState(admin, "Slave2", false);
- info = masterAdmin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator"));
+ info = masterAdmin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator"));
// We eventually need to wait here for the update of the replicated objects to propagate to the replica.
nRetry = 0;
- while(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator")) != info && nRetry < maxRetry)
+ while(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator")) != info && nRetry < maxRetry)
{
IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(sleepTime));
++nRetry;
}
- test(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Locator")) == info);
+ test(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Locator")) == info);
test(info.type == Ice::Locator::ice_staticId());
endpoints = info.proxy->ice_getEndpoints();
test(endpoints.size() == 2);
test(endpoints[0]->toString().find("-p 12050") != string::npos);
test(endpoints[1]->toString().find("-p 12051") != string::npos);
- info = masterAdmin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query"));
+ info = masterAdmin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query"));
nRetry = 0;
- while(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query")) != info && nRetry < maxRetry)
+ while(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query")) != info && nRetry < maxRetry)
{
IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(sleepTime));
++nRetry;
}
- test(slave1Admin->getObjectInfo(comm->stringToIdentity("RepTestIceGrid/Query")) == info);
+ test(slave1Admin->getObjectInfo(Ice::stringToIdentity("RepTestIceGrid/Query")) == info);
test(info.type == IceGrid::Query::ice_staticId());
endpoints = info.proxy->ice_getEndpoints();
test(endpoints.size() == 2);
@@ -948,7 +948,7 @@ allTests(const Ice::CommunicatorPtr& comm)
property.value = "test";
server->propertySet.properties.push_back(property);
ObjectDescriptor object;
- object.id = comm->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
object.type = "::Test::TestIntf";
adapter.objects.push_back(object);
server->adapters.push_back(adapter);
@@ -1175,7 +1175,7 @@ allTests(const Ice::CommunicatorPtr& comm)
property.value = "test";
server->propertySet.properties.push_back(property);
ObjectDescriptor object;
- object.id = comm->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
object.type = "::Test::TestIntf";
adapter.objects.push_back(object);
server->adapters.push_back(adapter);
@@ -1315,7 +1315,7 @@ allTests(const Ice::CommunicatorPtr& comm)
property.value = "test";
server->propertySet.properties.push_back(property);
ObjectDescriptor object;
- object.id = comm->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
object.type = "::Test::TestIntf";
adapter.objects.push_back(object);
server->adapters.push_back(adapter);
diff --git a/cpp/test/IceGrid/replication/Server.cpp b/cpp/test/IceGrid/replication/Server.cpp
index 52126ea2c26..d4ade3c1c73 100644
--- a/cpp/test/IceGrid/replication/Server.cpp
+++ b/cpp/test/IceGrid/replication/Server.cpp
@@ -25,7 +25,7 @@ Server::run(int, char**)
{
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = new TestI();
- adapter->add(object, communicator()->stringToIdentity(communicator()->getProperties()->getProperty("Identity")));
+ adapter->add(object, Ice::stringToIdentity(communicator()->getProperties()->getProperty("Identity")));
shutdownOnInterrupt();
try
{
diff --git a/cpp/test/IceGrid/session/AllTests.cpp b/cpp/test/IceGrid/session/AllTests.cpp
index bdd080a9ea0..e7f18c31519 100644
--- a/cpp/test/IceGrid/session/AllTests.cpp
+++ b/cpp/test/IceGrid/session/AllTests.cpp
@@ -269,7 +269,7 @@ public:
Lock sync(*this);
this->objects.erase(id);
updated(updateSerial(0, "object removed `" +
- current.adapter->getCommunicator()->identityToString(id) + "'"));
+ identityToString(id) + "'"));
}
int serial;
@@ -1641,20 +1641,20 @@ allTests(const Ice::CommunicatorPtr& communicator)
admin->addObjectWithType(obj, "::Dummy");
objectObs1->waitForUpdate(__FILE__, __LINE__);
- test(objectObs1->objects.find(communicator->stringToIdentity("dummy")) != objectObs1->objects.end());
- test(objectObs1->objects[communicator->stringToIdentity("dummy")].type == "::Dummy");
- test(objectObs1->objects[communicator->stringToIdentity("dummy")].proxy == obj);
+ test(objectObs1->objects.find(Ice::stringToIdentity("dummy")) != objectObs1->objects.end());
+ test(objectObs1->objects[Ice::stringToIdentity("dummy")].type == "::Dummy");
+ test(objectObs1->objects[Ice::stringToIdentity("dummy")].proxy == obj);
obj = communicator->stringToProxy("dummy:tcp -p 10000 -h localhost");
admin->updateObject(obj);
objectObs1->waitForUpdate(__FILE__, __LINE__);
- test(objectObs1->objects.find(communicator->stringToIdentity("dummy")) != objectObs1->objects.end());
- test(objectObs1->objects[communicator->stringToIdentity("dummy")].type == "::Dummy");
- test(objectObs1->objects[communicator->stringToIdentity("dummy")].proxy == obj);
+ test(objectObs1->objects.find(Ice::stringToIdentity("dummy")) != objectObs1->objects.end());
+ test(objectObs1->objects[Ice::stringToIdentity("dummy")].type == "::Dummy");
+ test(objectObs1->objects[Ice::stringToIdentity("dummy")].proxy == obj);
admin->removeObject(obj->ice_getIdentity());
objectObs1->waitForUpdate(__FILE__, __LINE__);
- test(objectObs1->objects.find(communicator->stringToIdentity("dummy")) == objectObs1->objects.end());
+ test(objectObs1->objects.find(Ice::stringToIdentity("dummy")) == objectObs1->objects.end());
}
catch(const Ice::UserException& ex)
{
diff --git a/cpp/test/IceGrid/session/PermissionsVerifier.cpp b/cpp/test/IceGrid/session/PermissionsVerifier.cpp
index f2971f5309d..ec8444d7f00 100644
--- a/cpp/test/IceGrid/session/PermissionsVerifier.cpp
+++ b/cpp/test/IceGrid/session/PermissionsVerifier.cpp
@@ -43,7 +43,7 @@ public:
{
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints(
"PermissionsVerifier", "tcp -p 12002");
- adapter->add(new AdminPermissionsVerifierI, communicator()->stringToIdentity("AdminPermissionsVerifier"));
+ adapter->add(new AdminPermissionsVerifierI, Ice::stringToIdentity("AdminPermissionsVerifier"));
adapter->activate();
communicator()->waitForShutdown();
return EXIT_SUCCESS;
diff --git a/cpp/test/IceGrid/session/Server.cpp b/cpp/test/IceGrid/session/Server.cpp
index 86abe1afd38..e118744af53 100644
--- a/cpp/test/IceGrid/session/Server.cpp
+++ b/cpp/test/IceGrid/session/Server.cpp
@@ -66,8 +66,8 @@ Server::run(int, char**)
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server");
if(communicator()->getProperties()->getPropertyAsInt("AddPermissionsVerifiers") > 0)
{
- adapter->add(new ClientPermissionsVerifierI(), communicator()->stringToIdentity("ClientPermissionsVerifier"));
- adapter->add(new SSLPermissionsVerifierI(), communicator()->stringToIdentity("SSLPermissionsVerifier"));
+ adapter->add(new ClientPermissionsVerifierI(), Ice::stringToIdentity("ClientPermissionsVerifier"));
+ adapter->add(new SSLPermissionsVerifierI(), Ice::stringToIdentity("SSLPermissionsVerifier"));
}
adapter->activate();
diff --git a/cpp/test/IceGrid/simple/Server.cpp b/cpp/test/IceGrid/simple/Server.cpp
index 5bc7aa01d69..1ba08e9b8af 100644
--- a/cpp/test/IceGrid/simple/Server.cpp
+++ b/cpp/test/IceGrid/simple/Server.cpp
@@ -30,7 +30,7 @@ Server::run(int argc, char* argv[])
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = new TestI();
string id = communicator()->getProperties()->getPropertyWithDefault("Identity", "test");
- adapter->add(object, communicator()->stringToIdentity(id));
+ adapter->add(object, Ice::stringToIdentity(id));
shutdownOnInterrupt();
try
diff --git a/cpp/test/IceGrid/update/AllTests.cpp b/cpp/test/IceGrid/update/AllTests.cpp
index 9512d42b4c3..67653d1252c 100644
--- a/cpp/test/IceGrid/update/AllTests.cpp
+++ b/cpp/test/IceGrid/update/AllTests.cpp
@@ -106,7 +106,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
adapter.serverLifetime = false;
addProperty(server, "Server.Endpoints", "default");
ObjectDescriptor object;
- object.id = communicator->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
object.type = "::Test::TestIntf";
adapter.objects.push_back(object);
server->adapters.push_back(adapter);
@@ -145,7 +145,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
test(false);
}
- update.nodes[0].servers[0]->adapters[0].objects[0].id = communicator->stringToIdentity("test2");
+ update.nodes[0].servers[0]->adapters[0].objects[0].id = Ice::stringToIdentity("test2");
try
{
admin->updateApplication(update);
@@ -173,7 +173,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
adapter.serverLifetime = false;
addProperty(server, "Server.Endpoints", "default");
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("${server}");
+ object.id = Ice::stringToIdentity("${server}");
object.type = "::Test::TestIntf";
adapter.objects.push_back(object);
server->adapters.push_back(adapter);
@@ -400,7 +400,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
adapter.serverLifetime = false;
adapter.registerProcess = false;
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
adapter.objects.push_back(object);
info.descriptor->adapters.push_back(adapter);
update = empty;
@@ -423,7 +423,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
info = admin->getServerInfo("Server");
test(info.descriptor);
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
info.descriptor->adapters[0].objects.push_back(object);
update = empty;
update.nodes[0].servers.push_back(info.descriptor);
@@ -445,7 +445,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
info = admin->getServerInfo("Server");
test(info.descriptor);
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("test1");
+ object.id = Ice::stringToIdentity("test1");
info.descriptor->adapters[0].allocatables.push_back(object);
update = empty;
update.nodes[0].servers.push_back(info.descriptor);
@@ -463,7 +463,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
info = admin->getServerInfo("Server");
test(info.descriptor);
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("test1");
+ object.id = Ice::stringToIdentity("test1");
info.descriptor->adapters[0].allocatables.push_back(object);
update = empty;
update.nodes[0].servers.push_back(info.descriptor);
@@ -485,7 +485,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
info = admin->getServerInfo("Server");
test(info.descriptor);
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
info.descriptor->adapters[0].allocatables.push_back(object);
update = empty;
update.nodes[0].servers.push_back(info.descriptor);
@@ -503,7 +503,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
info = admin->getServerInfo("Server");
test(info.descriptor);
object = ObjectDescriptor();
- object.id = communicator->stringToIdentity("test");
+ object.id = Ice::stringToIdentity("test");
info.descriptor->adapters[0].allocatables.push_back(object);
update = empty;
update.nodes[0].servers.push_back(info.descriptor);
diff --git a/cpp/test/IceGrid/update/Server.cpp b/cpp/test/IceGrid/update/Server.cpp
index 2d7f88df87d..c86e876bbf9 100644
--- a/cpp/test/IceGrid/update/Server.cpp
+++ b/cpp/test/IceGrid/update/Server.cpp
@@ -33,7 +33,7 @@ Server::run(int argc, char* argv[])
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server");
Ice::ObjectPtr object = new TestI(properties);
- adapter->add(object, communicator()->stringToIdentity(name));
+ adapter->add(object, Ice::stringToIdentity(name));
shutdownOnInterrupt();
try
diff --git a/cpp/test/IceSSL/configuration/Server.cpp b/cpp/test/IceSSL/configuration/Server.cpp
index d2006021028..44c76dc5cb5 100644
--- a/cpp/test/IceSSL/configuration/Server.cpp
+++ b/cpp/test/IceSSL/configuration/Server.cpp
@@ -20,7 +20,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "tcp -p 12010");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- Ice::Identity id = communicator->stringToIdentity("factory");
+ Ice::Identity id = Ice::stringToIdentity("factory");
adapter->add(ICE_MAKE_SHARED(ServerFactoryI), id);
adapter->activate();
TEST_READY
diff --git a/cpp/test/IceStorm/rep1/Sub.cpp b/cpp/test/IceStorm/rep1/Sub.cpp
index 30e5cc4a22a..5192f61e548 100644
--- a/cpp/test/IceStorm/rep1/Sub.cpp
+++ b/cpp/test/IceStorm/rep1/Sub.cpp
@@ -74,7 +74,7 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
return EXIT_FAILURE;
}
- Ice::ObjectPrx prx = adapter->add(new SingleI(), communicator->stringToIdentity(opts.optArg("id")));
+ Ice::ObjectPrx prx = adapter->add(new SingleI(), stringToIdentity(opts.optArg("id")));
if(opts.isSet("unsub"))
{
topic->unsubscribe(prx);
diff --git a/cpp/test/Slice/keyword/Client.cpp b/cpp/test/Slice/keyword/Client.cpp
index 0696a6e2edb..87f1556485b 100644
--- a/cpp/test/Slice/keyword/Client.cpp
+++ b/cpp/test/Slice/keyword/Client.cpp
@@ -172,12 +172,12 @@ run(const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010:udp");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- adapter->add(ICE_MAKE_SHARED(charI), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(charI), Ice::stringToIdentity("test"));
adapter->activate();
cout << "Testing operation name... " << flush;
_cpp_and::charPrxPtr p = ICE_UNCHECKED_CAST(_cpp_and::charPrx,
- adapter->createProxy(communicator->stringToIdentity("test")));
+ adapter->createProxy(Ice::stringToIdentity("test")));
p->_cpp_explicit();
cout << "ok" << endl;