Skip to content

Commit

Permalink
Suppress uninteresting call warning.
Browse files Browse the repository at this point in the history
Added forgotten EXPECT_CALL().
  • Loading branch information
suikan4github committed Oct 16, 2024
1 parent 5654d33 commit 186ae14
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/test_mocki2sslaveduplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@
#include "i2sslaveduplex.hpp"
#include "sdkwrapper.hpp"

using ::testing::_;
class MockI2sSlaveDuplexTest : public ::testing::Test {
protected:
virtual void SetUp() { i2s = new rpp_driver::MockI2sSlaveDuplex(sdk_); }
virtual void SetUp() {
EXPECT_CALL(sdk_, pio_claim_unused_sm(_, _));
i2s = new rpp_driver::MockI2sSlaveDuplex(sdk_);
}

virtual void TearDown() { delete i2s; }
virtual void TearDown() {
EXPECT_CALL(sdk_, pio_sm_unclaim(_, _));
delete i2s;
}

::rpp_driver::MockSdkWrapper sdk_;
::rpp_driver::MockI2sSlaveDuplex *i2s;
Expand Down

0 comments on commit 186ae14

Please # to comment.