class MockAdapterLinux : public Wifi::AdapterLinux {
public:
MOCK_METHOD(void, SetConfiguration, (const std::string& , (const std::vector<NetworkConfig>&)), (const));
std::shared_ptr<MockAdapterLinux> m_LinuxAdapter = std::make_shared<MockAdapterLinux>(m_logger, INTERFACE_NAME);
}
In my test I have the below expectation.
EXPECT_CALL(*m_wifiLinuxAdapter, SetConfiguration(_,_)).Times(1);
I get the error
error: cannot increment a pointer to incomplete type ‘const NetworkConfig’
What am I doing wrong here?
Aucun commentaire:
Enregistrer un commentaire