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 */ | 8 */ |
9 | 9 |
10 /** @suppress {duplicate} */ | 10 /** @suppress {duplicate} */ |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 return false; | 102 return false; |
103 }; | 103 }; |
104 | 104 |
105 remoting.MockClientPlugin.prototype.hasCapability = function(capability) { | 105 remoting.MockClientPlugin.prototype.hasCapability = function(capability) { |
106 return this.mock$capabilities.indexOf(capability) !== -1; | 106 return this.mock$capabilities.indexOf(capability) !== -1; |
107 }; | 107 }; |
108 | 108 |
109 remoting.MockClientPlugin.prototype.sendClipboardItem = | 109 remoting.MockClientPlugin.prototype.sendClipboardItem = |
110 function(mimeType, item) {}; | 110 function(mimeType, item) {}; |
111 | 111 |
| 112 remoting.MockClientPlugin.prototype.enableTouchEvents = |
| 113 function(enable) {}; |
| 114 |
112 remoting.MockClientPlugin.prototype.requestPairing = | 115 remoting.MockClientPlugin.prototype.requestPairing = |
113 function(clientName, onDone) {}; | 116 function(clientName, onDone) {}; |
114 | 117 |
115 remoting.MockClientPlugin.prototype.allowMouseLock = function() {}; | 118 remoting.MockClientPlugin.prototype.allowMouseLock = function() {}; |
116 | 119 |
117 remoting.MockClientPlugin.prototype.pauseAudio = function(pause) {}; | 120 remoting.MockClientPlugin.prototype.pauseAudio = function(pause) {}; |
118 | 121 |
119 remoting.MockClientPlugin.prototype.pauseVideo = function(pause) {}; | 122 remoting.MockClientPlugin.prototype.pauseVideo = function(pause) {}; |
120 | 123 |
121 remoting.MockClientPlugin.prototype.getPerfStats = function() { | 124 remoting.MockClientPlugin.prototype.getPerfStats = function() { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 }; | 288 }; |
286 | 289 |
287 })(); | 290 })(); |
288 | 291 |
289 /** @enum {string} */ | 292 /** @enum {string} */ |
290 remoting.MockClientPlugin.AuthMethod = { | 293 remoting.MockClientPlugin.AuthMethod = { |
291 ACCESS_CODE: 'accessCode', | 294 ACCESS_CODE: 'accessCode', |
292 PIN: 'pin', | 295 PIN: 'pin', |
293 THIRD_PARTY: 'thirdParty', | 296 THIRD_PARTY: 'thirdParty', |
294 PAIRING: 'pairing' | 297 PAIRING: 'pairing' |
295 }; | 298 }; |
OLD | NEW |