Web Wispers 1.2.2 C++ Unit Test Coverage
Current view: top level - ssrc/wispers/test - ServiceTestFixture.h (source / functions) Hit Total Coverage
Test: Web Wispers 1.2.2 C++ Unit Tests Lines: 1 1 100.0 %
Date: 2012-04-09 Functions: 10 10 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* Copyright 2006-2011 Savarese Software Research Corporation
       2                 :            :  *
       3                 :            :  * Licensed under the Apache License, Version 2.0 (the "License");
       4                 :            :  * you may not use this file except in compliance with the License.
       5                 :            :  * You may obtain a copy of the License at
       6                 :            :  *
       7                 :            :  *     https://www.savarese.com/software/ApacheLicense-2.0
       8                 :            :  *
       9                 :            :  * Unless required by applicable law or agreed to in writing, software
      10                 :            :  * distributed under the License is distributed on an "AS IS" BASIS,
      11                 :            :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      12                 :            :  * See the License for the specific language governing permissions and
      13                 :            :  * limitations under the License.
      14                 :            :  */
      15                 :            : 
      16                 :            : #ifndef __SSRC_WSPR_TEST_SERVICE_TEST_FIXTURE_H
      17                 :            : #define __SSRC_WSPR_TEST_SERVICE_TEST_FIXTURE_H
      18                 :            : 
      19                 :            : /**
      20                 :            :  * @file
      21                 :            :  * Defines a test fixture for writing Wispers service unit tests.
      22                 :            :  */
      23                 :            : 
      24                 :            : #include <ssrc/wispers/service/protocol.h>
      25                 :            : #include <ssrc/wisp/test/ServiceTestFixture.h>
      26                 :            : 
      27                 :            : __BEGIN_NS_SSRC_WSPR_TEST
      28                 :            : 
      29                 :            : template<typename ProtocolProcessor,
      30                 :            :          template <typename PP>
      31                 :            :          class EH = NS_SSRC_WISP_SERVICE::ServiceEventHandler,
      32                 :            :          typename Options = NS_SSRC_WISP_TEST::TestOptions,
      33                 :            :          bool has_initializer = false>
      34                 :         44 : struct ServiceTestFixture :
      35                 :            :   public NS_SSRC_WISP_TEST::ServiceTestFixture<ProtocolProcessor,
      36                 :            :                                             NS_SSRC_WSPR_SERVICE::ServiceProtocol::CallStop,
      37                 :            :                                             EH, Options, has_initializer>
      38                 :            : { };
      39                 :            : 
      40                 :            : __END_NS_SSRC_WSPR_TEST
      41                 :            : 
      42                 :            : #endif