Web Wispers 1.2.0 C++ Unit Test Coverage
Current view: top level - tests - TestCommon.h (source / functions) Hit Total Coverage
Test: Web Wispers 1.2.0 C++ Unit Tests Lines: 1 1 100.0 %
Date: 2010-05-27 Functions: 10 15 66.7 %
Branches: 1 2 50.0 %

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