test.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2009 Mamadou Diop.
  3. * Copyright (C) 2012 Doubango Telecom <http://doubango.org>.
  4. *
  5. * This file is part of Open Source Doubango Framework.
  6. *
  7. * DOUBANGO is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * DOUBANGO is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with DOUBANGO.
  19. *
  20. */
  21. #include "stdafx.h"
  22. #include "tsk_string.h"
  23. #include "tsk_debug.h"
  24. #include "tcomp_manager.h" /* TinySIGCOMP API functions. */
  25. #define STREAM_ID 1983
  26. #define IS_STREAM 0 // Using reliable transport
  27. #define MAX_BUFFER_SIZE 0xfff0
  28. #include "test_manager.h"
  29. #include "test_osc.h"
  30. #include "test_tortures.h"
  31. #define TEST_TORTURES 1
  32. #define TEST_MANAGER 0
  33. #define TEST_OSC 0
  34. #ifdef _WIN32_WCE
  35. int _tmain(int argc, _TCHAR* argv[])
  36. #else
  37. int main()
  38. #endif
  39. {
  40. #if TEST_TORTURES
  41. test_tortures();
  42. #endif
  43. #if TEST_MANAGER
  44. test_manager();
  45. #endif
  46. #if TEST_OSC
  47. test_osc();
  48. #endif
  49. getchar();
  50. return 0;
  51. }