~ken-vandine/content-hub/sharehandler-wip

« back to all changes in this revision

Viewing changes to tests/acceptance-tests/app_hub_communication_handler.cpp

  • Committer: Tarmac
  • Author(s): Ken VanDine
  • Date: 2013-10-09 22:39:03 UTC
  • mfrom: (42.2.12 click_hook)
  • Revision ID: tarmac-20131009223903-ja68htyryebu3650
Added a click hook, which iterates installed known peers, removing them when they are no longer installed and adding peers when needed.

Approved by Günter Schwann, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
 
66
66
    MOCK_METHOD1(default_peer_for_type, cuc::Peer(cuc::Type t));
67
67
    MOCK_METHOD2(enumerate_known_peers_for_type, void(cuc::Type, const std::function<void(const cuc::Peer&)>&));
68
 
 
 
68
    MOCK_METHOD1(enumerate_known_peers, void(const std::function<void(const cuc::Peer&)>&));
69
69
    MOCK_METHOD2(install_default_peer_for_type, bool(cuc::Type, cuc::Peer));
70
70
    MOCK_METHOD2(install_peer_for_type, bool(cuc::Type, cuc::Peer));
 
71
    MOCK_METHOD1(remove_peer, bool(cuc::Peer));
71
72
};
72
73
 
73
74
struct MockedHandler : public cuc::ImportExportHandler