~phablet-team/messaging-framework/trunk

« back to all changes in this revision

Viewing changes to tests/mock_connection.h

  • Committer: Tarmac
  • Author(s): Roberto Mier Escandon
  • Date: 2016-10-27 16:23:38 UTC
  • mfrom: (68.1.5 maintain-connection-state)
  • Revision ID: tarmac-20161027162338-aoi713fckmq5s4vf
Sets a reason when disconnecting, to differenciate if user requested disconnection or is it due to a network matter.

Approved by system-apps-ci-bot, Gustavo Pichorim Boiko.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    MOCK_METHOD0(messenger, std::shared_ptr<messaging::Messenger>());
51
51
    MOCK_METHOD0(group_starter, std::shared_ptr<messaging::GroupStarter>());
52
52
    MOCK_METHOD0(connect, void());
53
 
    MOCK_METHOD0(disconnect, void());
 
53
    MOCK_METHOD1(disconnect, void(StatusChangedReason));
54
54
    MOCK_METHOD1(normalize_identifier, std::string(const std::string&));
55
55
    MOCK_METHOD1(is_valid_identifier, bool(const std::string&));
56
56