[mediacontroller] Autoformatting changes in mediacontroller. 07/215607/1
authorMichal Michalski <m.michalski2@partner.samsung.com>
Fri, 11 Oct 2019 09:15:08 +0000 (11:15 +0200)
committerMichal Michalski <m.michalski2@partner.samsung.com>
Fri, 11 Oct 2019 09:15:08 +0000 (11:15 +0200)
Autoformatting of changes in mediacontroller.

Change-Id: I8e576444123cdc98766c41ae014073964757fc0e
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
src/mediacontroller/js/ut/test_custom_event.js
src/mediacontroller/mediacontroller_api.js
src/mediacontroller/mediacontroller_instance.cc

index eaea4181cc5fbb2d59751441f493cdbecbba6183..091fc6e269ef751a22d4ba5fd360944d00c66e8a 100644 (file)
@@ -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');
index f7171570770faa56f460c5796609a95323a21376..e0d1df7dbd7a87fc51e51c3930d51e6fa3e105de 100755 (executable)
@@ -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 = [];
index 2356c17653a7965596bd58bb58747f634fa40e1b..8736d71191a8f16e93411412f6f58609d2e3c5f7 100644 (file)
@@ -919,9 +919,9 @@ void MediaControllerInstance::MediaControllerClientInfoSendEvent(const picojson:
     free(request_id);
   };
 
-  PlatformResult result = server_->SendEvent(
-      args.get(kEventName).get<std::string>().c_str(), args.get(kEventData),
-      args.get(kClientName).get<std::string>().c_str(), reply_cb, &request_id);
+  PlatformResult result =
+      server_->SendEvent(args.get(kEventName).get<std::string>().c_str(), args.get(kEventData),
+                         args.get(kClientName).get<std::string>().c_str(), reply_cb, &request_id);
 
   if (result) {
     out[kRequestId] = picojson::value(std::string(request_id));