#include "kstdio_mock.hpp" using ::testing::StrEq; class kstdioFixture : public ::testing::Test { protected: void SetUp() { } kstdio_mock m_kstdio_mock; }; TEST_F(kstdioFixture, printfCallsMock) { EXPECT_CALL(m_kstdio_mock, printf(StrEq("hello world"))); kstdio_printf("hello world"); }