TestTPAlloc.h
上传用户:xfwatch
上传日期:2020-12-14
资源大小:872k
文件大小:2k
源码类别:

中间件编程

开发平台:

Java

  1. /*
  2.  * JBoss, Home of Professional Open Source
  3.  * Copyright 2008, Red Hat, Inc., and others contributors as indicated
  4.  * by the @authors tag. All rights reserved.
  5.  * See the copyright.txt in the distribution for a
  6.  * full listing of individual contributors.
  7.  * This copyrighted material is made available to anyone wishing to use,
  8.  * modify, copy, or redistribute it subject to the terms and conditions
  9.  * of the GNU Lesser General Public License, v. 2.1.
  10.  * This program is distributed in the hope that it will be useful, but WITHOUT A
  11.  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  12.  * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  13.  * You should have received a copy of the GNU Lesser General Public License,
  14.  * v.2.1 along with this distribution; if not, write to the Free Software
  15.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  16.  * MA  02110-1301, USA.
  17.  */
  18. #ifndef TestTPAlloc_H
  19. #define TestTPAlloc_H
  20. #include <cppunit/extensions/HelperMacros.h>
  21. #include <cppunit/TestFixture.h>
  22. #include "BaseTest.h"
  23. class TestTPAlloc: public BaseTest {
  24. CPPUNIT_TEST_SUITE( TestTPAlloc);
  25. CPPUNIT_TEST( test_tpalloc_x_octet_subtype_ignored);
  26. CPPUNIT_TEST( test_tpalloc_zero);
  27. CPPUNIT_TEST( test_tpalloc_negative);
  28. CPPUNIT_TEST( test_tpalloc_unknowntype);
  29. CPPUNIT_TEST( test_tpalloc_x_octet);
  30. CPPUNIT_TEST( test_tpalloc_x_common);
  31. CPPUNIT_TEST( test_tpalloc_x_common_subtype_required);
  32. CPPUNIT_TEST( test_tpalloc_x_c_type_subtype_required);
  33. CPPUNIT_TEST( test_tpalloc_x_common_bigsubtype);
  34. CPPUNIT_TEST( test_tpalloc_x_c_type);
  35. CPPUNIT_TEST_SUITE_END();
  36. public:
  37. void test_tpalloc_zero();
  38. void test_tpalloc_negative();
  39. void test_tpalloc_x_octet_subtype_ignored();
  40. void test_tpalloc_unknowntype();
  41. void test_tpalloc_x_octet();
  42. void test_tpalloc_x_common();
  43. void test_tpalloc_x_common_bigsubtype();
  44. void test_tpalloc_x_c_type();
  45. void test_tpalloc_x_common_subtype_required();
  46. void test_tpalloc_x_c_type_subtype_required();
  47. virtual void setUp();
  48. virtual void tearDown();
  49. private:
  50. char * m_allocated;
  51. };
  52. #endif