text: // Copyright 2019, Oath Inc.
  // Licensed under the terms of the Apache 2.0 license. See LICENSE file in the root of the distribution for licensing details.
  #ifndef TESTS_HMCONTROLTLSSOCKET5_H_
  #define TESTS_HMCONTROLTLSSOCKET5_H_
  
  #include <cppunit/Test.h>
  #include <cppunit/TestFixture.h>
  #include <cppunit/extensions/HelperMacros.h>
  #include "HMStateManager.h"
  
  
  #define TESTNAME Test_HMControlTLSSocket5
  
  class TESTNAME : public CppUnit::TestFixture
  {
  
      CPPUNIT_TEST_SUITE(TESTNAME);
      CPPUNIT_TEST(test_cmdlstnr1);
      CPPUNIT_TEST(test_cmdlstnr2);
      CPPUNIT_TEST(test_cmdlstnr3);
      CPPUNIT_TEST(test_cmdlstnr4);
      CPPUNIT_TEST(test_cmdlstnr5);
      CPPUNIT_TEST(test_cmdlstnr6);
      CPPUNIT_TEST(test_cmdlstnr7);
      CPPUNIT_TEST(test_cmdlstnr8);
      CPPUNIT_TEST(test_cmdlstnr9);
      CPPUNIT_TEST(test_cmdlstnr10);
      CPPUNIT_TEST_SUITE_END();
  
  
  public:
      void setUp();
      void tearDown();
  
  protected:
      void test_cmdlstnr1();
      void test_cmdlstnr2();
      void test_cmdlstnr3();
      void test_cmdlstnr4();
      void test_cmdlstnr5();
      void test_cmdlstnr6();
      void test_cmdlstnr7();
      void test_cmdlstnr8();
      void test_cmdlstnr9();
      void test_cmdlstnr10();
      HMStateManager *sm;
      std::thread sm_thr;
      HMAPIIPAddress server;
      uint16_t port;
      std::string certfile;
      std::string keyfile;
      std::string caFile;
      HMHash hash;
      HMHash hash1;
      HMHash hash2;
  };
  #endif /* TESTS_HMCONTROLTLSSOCKET5_H_ */
  