simSource_test.h
1 
2 #ifdef TESTING
3 #include <gtest/gtest.h>
4 #include <gmock/gmock.h>
5 #include "../src/include/simSource.h"
6 
7 class MockModemSms : public ModemManagerPrivate {
8  public:
9  MOCK_METHOD0(isAlive, bool());
10  //MOCK_METHOD4(generateCmdMsg, void(dpyModemPrivate::MODEM_COMMAND cmd, const std::string& first_param, const std::string& second_param, dpyModemPrivate::command_handler_function handler));
11  MOCK_METHOD4(requestSmsOperation, boost::system::error_code(const std::string&, const dpyModemPrivate::SmsOperation&, const std::string&, const std::string&));
12  MOCK_METHOD2(asyncGetAllSmsInfo, void(const std::string&, dpyModemPrivate::get_sms_info_handler_function ));
13 };
14 
15 
16 
17 class MockSmsSourceObserver: public SmsSourceObserver {
18  public:
19  MOCK_METHOD2(updateSourceStatus, void(const std::string& , const dpySms::SourceStatus&));
20  //MOCK_METHOD4(generateCmdMsg, void(dpyModemPrivate::MODEM_COMMAND cmd, const std::string& first_param, const std::string& second_param, dpyModemPrivate::command_handler_function handler));
21  MOCK_METHOD3(smsEvent, void(const std::string&,const std::string&, const dpySms::SmsNotifications&));
22 };
23 
24 #endif //TESTING
SourceStatus
Source Status.
Definition: iVoiceCallSource.h:18
boost::function< void(boost::system::error_code error_code, const std::map< std::string, dpyModem::s_SMSInfo > &smsInfoList)> get_sms_info_handler_function
Prototype of the handler function used to retrieve sms info.
Definition: modemApiPrivate.h:71
SmsOperation
Defines the possible sms operations.
Definition: modemApiPrivate.h:18
Allows to interact with a modem from inside the Deepsy.
Definition: modemApiPrivate.h:88