From cd418608297a38b64abd9eaa2086a7424ee62099 Mon Sep 17 00:00:00 2001 From: Michal Michalski Date: Fri, 11 Oct 2019 11:15:08 +0200 Subject: [PATCH] [mediacontroller] Autoformatting changes in mediacontroller. Autoformatting of changes in mediacontroller. Change-Id: I8e576444123cdc98766c41ae014073964757fc0e Signed-off-by: Michal Michalski --- src/mediacontroller/js/ut/test_custom_event.js | 5 ++++- src/mediacontroller/mediacontroller_api.js | 2 +- src/mediacontroller/mediacontroller_instance.cc | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/mediacontroller/js/ut/test_custom_event.js b/src/mediacontroller/js/ut/test_custom_event.js index eaea4181..091fc6e2 100644 --- a/src/mediacontroller/js/ut/test_custom_event.js +++ b/src/mediacontroller/js/ut/test_custom_event.js @@ -83,7 +83,10 @@ describe('MediaControllerClientInfo::sendEvent', function() { chai.expect(error.name).to.equal('TypeMismatchError'); } try { - cinfo.sendEvent('TestEvent', 'not-an-object-or-null', function(data, code) {}); + cinfo.sendEvent('TestEvent', 'not-an-object-or-null', function( + data, + code + ) {}); done(new Error('Expected TypeMismatchError')); } catch (error) { chai.expect(error.name).to.equal('TypeMismatchError'); diff --git a/src/mediacontroller/mediacontroller_api.js b/src/mediacontroller/mediacontroller_api.js index f7171570..e0d1df7d 100755 --- a/src/mediacontroller/mediacontroller_api.js +++ b/src/mediacontroller/mediacontroller_api.js @@ -2841,7 +2841,7 @@ MediaControllerServer.prototype.getAllClientsInfo = function() { var results = native_.getResultObject(nativeResult); if (!type_.isArray(results)) { - throw new WebAPIException(WebAPIException.UNKNOWN_ERR, "Invalid return type."); + throw new WebAPIException(WebAPIException.UNKNOWN_ERR, 'Invalid return type.'); } var clientsInfo = []; diff --git a/src/mediacontroller/mediacontroller_instance.cc b/src/mediacontroller/mediacontroller_instance.cc index 2356c176..8736d711 100644 --- a/src/mediacontroller/mediacontroller_instance.cc +++ b/src/mediacontroller/mediacontroller_instance.cc @@ -919,9 +919,9 @@ void MediaControllerInstance::MediaControllerClientInfoSendEvent(const picojson: free(request_id); }; - PlatformResult result = server_->SendEvent( - args.get(kEventName).get().c_str(), args.get(kEventData), - args.get(kClientName).get().c_str(), reply_cb, &request_id); + PlatformResult result = + server_->SendEvent(args.get(kEventName).get().c_str(), args.get(kEventData), + args.get(kClientName).get().c_str(), reply_cb, &request_id); if (result) { out[kRequestId] = picojson::value(std::string(request_id)); -- 2.34.1