mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Don't use to-be-deprecated names
This commit is contained in:
committed by
Dennis Klein
parent
f15f669853
commit
bfd08bb33f
@@ -7,8 +7,8 @@
|
||||
********************************************************************************/
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <FairMQParts.h>
|
||||
#include <FairMQTransportFactory.h>
|
||||
#include <fairmq/Parts.h>
|
||||
#include <fairmq/TransportFactory.h>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
@@ -21,11 +21,11 @@ using namespace std;
|
||||
|
||||
class RandomAccessIterator : public ::testing::Test {
|
||||
protected:
|
||||
FairMQParts mParts;
|
||||
shared_ptr<FairMQTransportFactory> mFactory;
|
||||
fair::mq::Parts mParts;
|
||||
shared_ptr<fair::mq::TransportFactory> mFactory;
|
||||
|
||||
RandomAccessIterator()
|
||||
: mFactory(FairMQTransportFactory::CreateTransportFactory("zeromq"))
|
||||
: mFactory(fair::mq::TransportFactory::CreateTransportFactory("zeromq"))
|
||||
{
|
||||
mParts.AddPart(mFactory->NewSimpleMessage("1"));
|
||||
mParts.AddPart(mFactory->NewSimpleMessage("2"));
|
||||
@@ -62,7 +62,7 @@ TEST_F(RandomAccessIterator, RangeForLoopMutation)
|
||||
TEST_F(RandomAccessIterator, ForEachConst)
|
||||
{
|
||||
stringstream out;
|
||||
for_each(mParts.cbegin(), mParts.cend(), [&out](const FairMQMessagePtr& part) {
|
||||
for_each(mParts.cbegin(), mParts.cend(), [&out](const fair::mq::MessagePtr& part) {
|
||||
out << string{static_cast<char*>(part->GetData()), part->GetSize()};
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user