19 #ifndef MIR_TEST_DOUBLES_MOCK_PLATFORM_AUTHENTICATION_H_ 20 #define MIR_TEST_DOUBLES_MOCK_PLATFORM_AUTHENTICATION_H_ 22 #include "mir/graphics/platform_authentication.h" 23 #include "mir/graphics/platform_operation_message.h" 24 #include <gmock/gmock.h> 30 inline bool operator==(PlatformOperationMessage
const& msg1,
31 PlatformOperationMessage
const& msg2)
33 return msg1.data == msg2.data && msg1.fds == msg2.fds;
36 inline bool operator!=(PlatformOperationMessage
const& msg1,
37 PlatformOperationMessage
const& msg2)
39 return !(msg1 == msg2);
51 MOCK_METHOD2(platform_operation, graphics::PlatformOperationMessage(
52 unsigned int, graphics::PlatformOperationMessage
const&));
56 MOCK_METHOD2(request_interface,
void*(
char const*,
int));
AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: blob.h:26
Definition: optional_value.h:28
bool operator==(PlatformOperationMessage const &msg1, PlatformOperationMessage const &msg2)
Definition: mock_platform_authentication.h:30
bool operator!=(PlatformOperationMessage const &msg1, PlatformOperationMessage const &msg2)
Definition: mock_platform_authentication.h:36