| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Mock implementation of ClientPlugin for testing. | 7 * Mock implementation of ClientPlugin for testing. |
| 8 * @suppress {checkTypes} | 8 * @suppress {checkTypes} |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 remoting.MockClientPlugin.prototype.onIncomingIq = function(iq) {}; | 90 remoting.MockClientPlugin.prototype.onIncomingIq = function(iq) {}; |
| 91 | 91 |
| 92 remoting.MockClientPlugin.prototype.isSupportedVersion = function() { | 92 remoting.MockClientPlugin.prototype.isSupportedVersion = function() { |
| 93 return true; | 93 return true; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 remoting.MockClientPlugin.prototype.hasFeature = function(feature) { | 96 remoting.MockClientPlugin.prototype.hasFeature = function(feature) { |
| 97 return false; | 97 return false; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 remoting.MockClientPlugin.prototype.enableMediaSourceRendering = | |
| 101 function(mediaSourceRenderer) {}; | |
| 102 | |
| 103 remoting.MockClientPlugin.prototype.sendClipboardItem = | 100 remoting.MockClientPlugin.prototype.sendClipboardItem = |
| 104 function(mimeType, item) {}; | 101 function(mimeType, item) {}; |
| 105 | 102 |
| 106 remoting.MockClientPlugin.prototype.useAsyncPinDialog = function() {}; | 103 remoting.MockClientPlugin.prototype.useAsyncPinDialog = function() {}; |
| 107 | 104 |
| 108 remoting.MockClientPlugin.prototype.requestPairing = | 105 remoting.MockClientPlugin.prototype.requestPairing = |
| 109 function(clientName, onDone) {}; | 106 function(clientName, onDone) {}; |
| 110 | 107 |
| 111 remoting.MockClientPlugin.prototype.onPinFetched = function(pin) {}; | 108 remoting.MockClientPlugin.prototype.onPinFetched = function(pin) {}; |
| 112 | 109 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 * @extends {remoting.ClientPluginFactory} | 175 * @extends {remoting.ClientPluginFactory} |
| 179 */ | 176 */ |
| 180 remoting.MockClientPluginFactory = function() {}; | 177 remoting.MockClientPluginFactory = function() {}; |
| 181 | 178 |
| 182 remoting.MockClientPluginFactory.prototype.createPlugin = | 179 remoting.MockClientPluginFactory.prototype.createPlugin = |
| 183 function(container, onExtensionMessage) { | 180 function(container, onExtensionMessage) { |
| 184 return new remoting.MockClientPlugin(container); | 181 return new remoting.MockClientPlugin(container); |
| 185 }; | 182 }; |
| 186 | 183 |
| 187 remoting.MockClientPluginFactory.prototype.preloadPlugin = function() {}; | 184 remoting.MockClientPluginFactory.prototype.preloadPlugin = function() {}; |
| OLD | NEW |