| Index: remoting/webapp/crd/js/mock_host_list_api.js
|
| diff --git a/remoting/webapp/crd/js/mock_host_list_api.js b/remoting/webapp/crd/js/mock_host_list_api.js
|
| index e0298e4ae363485b8e0b9977759102bc28727075..3cead52c60e328123182855d86fd0e03f74ba8ea 100644
|
| --- a/remoting/webapp/crd/js/mock_host_list_api.js
|
| +++ b/remoting/webapp/crd/js/mock_host_list_api.js
|
| @@ -31,6 +31,12 @@ remoting.MockHostListApi = function() {
|
| */
|
| this.emailFromRegister = null;
|
|
|
| + /**
|
| + * This host ID to return from register(), or null if it should fail.
|
| + * @type {?string}
|
| + */
|
| + this.hostIdFromRegister = null;
|
| +
|
| /** @type {Array<remoting.Host>} */
|
| this.hosts = [
|
| {
|
| @@ -56,7 +62,7 @@ remoting.MockHostListApi = function() {
|
|
|
| /** @override */
|
| remoting.MockHostListApi.prototype.register = function(
|
| - newHostId, hostName, publicKey, hostClientId) {
|
| + hostName, publicKey, hostClientId) {
|
| if (this.authCodeFromRegister === null || this.emailFromRegister === null) {
|
| return Promise.reject(
|
| new remoting.Error(
|
| @@ -65,7 +71,8 @@ remoting.MockHostListApi.prototype.register = function(
|
| } else {
|
| return Promise.resolve({
|
| authCode: this.authCodeFromRegister,
|
| - email: this.emailFromRegister
|
| + email: this.emailFromRegister,
|
| + hostId: this.hostIdFromRegister
|
| });
|
| }
|
| };
|
|
|