Skip to content

Commit

Permalink
braces indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Mabel Zhang <[email protected]>
  • Loading branch information
mabelzhang committed Sep 3, 2022
1 parent 0569e10 commit fced8fb
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions test/integration/triggered_publisher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -702,15 +702,15 @@ TEST_F(TriggeredPublisherTest,
auto srvEchoCb = std::function<bool(const msgs::StringMsg &,
msgs::StringMsg &)>(
[&recvCount](const auto &req, auto &rep)
{
EXPECT_EQ(req.data(), "test");
if (req.data() == "test")
{
EXPECT_EQ(req.data(), "test");
if (req.data() == "test")
{
++recvCount;
return true;
}
return false;
});
return false;
});

std::string service = "/srv-test";
node.Advertise(service, srvEchoCb);
Expand Down Expand Up @@ -750,10 +750,10 @@ TEST_F(TriggeredPublisherTest,
{
std::lock_guard<std::mutex> lock(recvMsgMutex);
if (req.data())
{
_msgVector.push_back(req.data());
return true;
}
{
_msgVector.push_back(req.data());
return true;
}
return false;
});
};
Expand Down Expand Up @@ -802,15 +802,15 @@ TEST_F(TriggeredPublisherTest,
auto srvEchoCb = std::function<bool(const msgs::StringMsg &,
msgs::StringMsg &)>(
[&recvCount](const auto &req, auto &rep)
{
EXPECT_EQ(req.data(), "test");
if (req.data() == "test")
{
++recvCount;
return true;
}
return false;
});
EXPECT_EQ(req.data(), "test");
if (req.data() == "test")
{
++recvCount;
return true;
}
return false;
});

// Advertise a dummy service
std::string service = "/srv-test";
Expand Down Expand Up @@ -842,15 +842,15 @@ TEST_F(TriggeredPublisherTest,
auto srvEchoCb = std::function<bool(const msgs::Boolean &,
msgs::StringMsg &)>(
[&recvCount](const auto &req, auto &rep)
{
EXPECT_EQ(req.data(), true);
if (req.data() == true)
{
++recvCount;
return true;
}
return false;
});
EXPECT_EQ(req.data(), true);
if (req.data() == true)
{
++recvCount;
return true;
}
return false;
});

// Advertise a dummy service
std::string service = "/srv-diff-type-0";
Expand Down Expand Up @@ -882,15 +882,15 @@ TEST_F(TriggeredPublisherTest,
auto srvEchoCb = std::function<bool(const msgs::StringMsg &,
msgs::Boolean &)>(
[&recvCount](const auto &req, auto &rep)
{
EXPECT_EQ(req.data(), "test");
if (req.data() == "test")
{
++recvCount;
return true;
}
return false;
});
EXPECT_EQ(req.data(), "test");
if (req.data() == "test")
{
++recvCount;
return true;
}
return false;
});

// Advertise a dummy service
std::string service = "/srv-diff-type-1";
Expand Down

0 comments on commit fced8fb

Please sign in to comment.