| Index: remoting/protocol/protocol_mock_objects.cc
|
| diff --git a/remoting/protocol/protocol_mock_objects.cc b/remoting/protocol/protocol_mock_objects.cc
|
| index eb4022abfb40312279ab38f28fc9cd094867e706..1902d83acc9a65d1990e351e0c74d4433affc951 100644
|
| --- a/remoting/protocol/protocol_mock_objects.cc
|
| +++ b/remoting/protocol/protocol_mock_objects.cc
|
| @@ -55,8 +55,12 @@ MockPairingRegistryDelegate::~MockPairingRegistryDelegate() {
|
| }
|
|
|
| void MockPairingRegistryDelegate::AddPairing(
|
| - const PairingRegistry::Pairing& new_paired_client) {
|
| - paired_clients_[new_paired_client.client_id] = new_paired_client;
|
| + const PairingRegistry::Pairing& new_paired_client,
|
| + const PairingRegistry::AddPairingCallback& callback) {
|
| + paired_clients_[new_paired_client.client_id()] = new_paired_client;
|
| + if (!callback.is_null()) {
|
| + callback.Run(true);
|
| + }
|
| }
|
|
|
| void MockPairingRegistryDelegate::GetPairing(
|
|
|