From: Michal Michalski Date: Fri, 11 Oct 2019 09:15:08 +0000 (+0200) Subject: [mediacontroller] Autoformatting changes in mediacontroller. X-Git-Tag: submit/tizen/20191017.093445~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd418608297a38b64abd9eaa2086a7424ee62099;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [mediacontroller] Autoformatting changes in mediacontroller. Autoformatting of changes in mediacontroller. Change-Id: I8e576444123cdc98766c41ae014073964757fc0e Signed-off-by: Michal Michalski --- 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));