Skip to content

Commit 186ae14

Browse files
committed
Suppress uninteresting call warning.
Added forgotten EXPECT_CALL().
1 parent 5654d33 commit 186ae14

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

test/test_mocki2sslaveduplex.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@
99
#include "i2sslaveduplex.hpp"
1010
#include "sdkwrapper.hpp"
1111

12+
using ::testing::_;
1213
class MockI2sSlaveDuplexTest : public ::testing::Test {
1314
protected:
14-
virtual void SetUp() { i2s = new rpp_driver::MockI2sSlaveDuplex(sdk_); }
15+
virtual void SetUp() {
16+
EXPECT_CALL(sdk_, pio_claim_unused_sm(_, _));
17+
i2s = new rpp_driver::MockI2sSlaveDuplex(sdk_);
18+
}
1519

16-
virtual void TearDown() { delete i2s; }
20+
virtual void TearDown() {
21+
EXPECT_CALL(sdk_, pio_sm_unclaim(_, _));
22+
delete i2s;
23+
}
1724

1825
::rpp_driver::MockSdkWrapper sdk_;
1926
::rpp_driver::MockI2sSlaveDuplex *i2s;

0 commit comments

Comments
 (0)