LCOV - code coverage report
Current view: top level - media/server/ipc/source - IpcFactory.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 14 0
Test Date: 2025-02-18 13:13:53 Functions: 0.0 % 2 0

            Line data    Source code
       1              : /*
       2              :  * If not stated otherwise in this file or this component's LICENSE file the
       3              :  * following copyright and licenses apply:
       4              :  *
       5              :  * Copyright 2022 Sky UK
       6              :  *
       7              :  * Licensed under the Apache License, Version 2.0 (the "License");
       8              :  * you may not use this file except in compliance with the License.
       9              :  * You may obtain a copy of the License at
      10              :  *
      11              :  * http://www.apache.org/licenses/LICENSE-2.0
      12              :  *
      13              :  * Unless required by applicable law or agreed to in writing, software
      14              :  * distributed under the License is distributed on an "AS IS" BASIS,
      15              :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      16              :  * See the License for the specific language governing permissions and
      17              :  * limitations under the License.
      18              :  */
      19              : 
      20              : #include "IpcFactory.h"
      21              : #include "ApplicationManagementServer.h"
      22              : #include "IControlModuleService.h"
      23              : #include "IIpcServer.h"
      24              : #include "IMediaKeysCapabilitiesModuleService.h"
      25              : #include "IMediaKeysModuleService.h"
      26              : #include "IMediaPipelineCapabilitiesModuleService.h"
      27              : #include "IMediaPipelineModuleService.h"
      28              : #include "IServerManagerModuleServiceFactory.h"
      29              : #include "IWebAudioPlayerModuleService.h"
      30              : #include "SessionManagementServer.h"
      31              : 
      32              : namespace firebolt::rialto::server::ipc
      33              : {
      34              : std::unique_ptr<IApplicationManagementServer>
      35            0 : IpcFactory::createApplicationManagementServer(service::ISessionServerManager &sessionServerManager) const
      36              : {
      37              :     return std::make_unique<
      38            0 :         ApplicationManagementServer>(firebolt::rialto::ipc::IServerFactory::createFactory(),
      39            0 :                                      firebolt::rialto::server::ipc::IServerManagerModuleServiceFactory::createFactory(),
      40            0 :                                      sessionServerManager);
      41              : }
      42              : 
      43              : std::unique_ptr<ISessionManagementServer>
      44            0 : IpcFactory::createSessionManagementServer(service::IPlaybackService &playbackService, service::ICdmService &cdmService,
      45              :                                           service::IControlService &controlService) const
      46              : {
      47              :     std::shared_ptr<firebolt::rialto::wrappers::ILinuxWrapper> linuxWrapper{
      48            0 :         firebolt::rialto::wrappers::ILinuxWrapperFactory::createFactory()->createLinuxWrapper()};
      49              :     return std::make_unique<
      50            0 :         SessionManagementServer>(linuxWrapper, firebolt::rialto::ipc::IServerFactory::createFactory(),
      51            0 :                                  firebolt::rialto::server::ipc::IMediaPipelineModuleServiceFactory::createFactory(),
      52            0 :                                  firebolt::rialto::server::ipc::IMediaPipelineCapabilitiesModuleServiceFactory::createFactory(),
      53            0 :                                  firebolt::rialto::server::ipc::IMediaKeysModuleServiceFactory::createFactory(),
      54            0 :                                  firebolt::rialto::server::ipc::IMediaKeysCapabilitiesModuleServiceFactory::createFactory(),
      55            0 :                                  firebolt::rialto::server::ipc::IWebAudioPlayerModuleServiceFactory::createFactory(),
      56            0 :                                  firebolt::rialto::server::ipc::IControlModuleServiceFactory::createFactory(),
      57            0 :                                  playbackService, cdmService, controlService);
      58              : }
      59              : } // namespace firebolt::rialto::server::ipc
        

Generated by: LCOV version 2.0-1