Skip to content

Commit

Permalink
iox-eclipse-iceoryx#218 add nicemock to publisher mock
Browse files Browse the repository at this point in the history
Signed-off-by: Kroenke Dietrich (CC-AD/ESW1) <[email protected]>
  • Loading branch information
dkroenke committed Sep 23, 2020
1 parent 4f0d571 commit 04164bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iceoryx_posh/test/moduletests/test_popo_base_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

using namespace ::testing;
using ::testing::_;
using ::testing::NiceMock;

struct DummyData
{
Expand Down Expand Up @@ -73,7 +74,7 @@ class StubbedBasePublisher : public iox::popo::BasePublisher<T, port_t>
}
};

using TestBasePublisher = StubbedBasePublisher<DummyData, MockPublisherPortUser>;
using TestBasePublisher = StubbedBasePublisher<DummyData, NiceMock<MockPublisherPortUser>>;

class BasePublisherTest : public Test
{
Expand Down

0 comments on commit 04164bc

Please sign in to comment.