Skip to content

Commit

Permalink
Format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Oct 16, 2024
1 parent c907e6d commit 4ba34f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions cpp/test/Ice/adapterDeactivation/AllTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ allTests(Test::TestHelper* helper)
// Two non-loopback endpoints
communicator->getProperties()->setProperty(
"PHAdapter.Endpoints",
"tcp -h * -p " + to_string(firstPort) +":default -h *");
"tcp -h * -p " + to_string(firstPort) + ":default -h *");

communicator->getProperties()->setProperty("PHAdapter.PublishedHost", "");
{
Expand Down Expand Up @@ -266,7 +266,9 @@ allTests(Test::TestHelper* helper)
auto router = obj->ice_identity<Ice::RouterPrx>(routerId)->ice_connectionId("rc");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithRouter("", router);
test(adapter->getPublishedEndpoints().size() == 1);
test(adapter->getPublishedEndpoints()[0]->toString() == "tcp -h localhost -p " + to_string(routerPort) + " -t 30000");
test(
adapter->getPublishedEndpoints()[0]->toString() ==
"tcp -h localhost -p " + to_string(routerPort) + " -t 30000");
try
{
adapter->setPublishedEndpoints(router->ice_getEndpoints());
Expand Down
10 changes: 6 additions & 4 deletions cpp/test/Ice/adapterDeactivation/ServantLocatorI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ namespace

optional<ObjectPrx> getServerProxy(const Current& c) const final
{
return ObjectPrx(c.adapter->getCommunicator(), "dummy:tcp -h localhost -p " + to_string(_routerPort) + " -t 30000");
return ObjectPrx(
c.adapter->getCommunicator(),
"dummy:tcp -h localhost -p " + to_string(_routerPort) + " -t 30000");
}

ObjectProxySeq addProxies(ObjectProxySeq, const Current&) final { return ObjectProxySeq(); }
Expand All @@ -30,9 +32,9 @@ namespace
};
}

ServantLocatorI::ServantLocatorI(Test::TestHelper* helper) :
_deactivated(false),
_router(make_shared<RouterI>(helper)) {}
ServantLocatorI::ServantLocatorI(Test::TestHelper* helper) : _deactivated(false), _router(make_shared<RouterI>(helper))
{
}

ServantLocatorI::~ServantLocatorI() { test(_deactivated); }

Expand Down

0 comments on commit 4ba34f6

Please sign in to comment.