ctkXnatConnectionTest.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) 2013 University College London, Centre for Medical Image Computing
  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. http://www.apache.org/licenses/LICENSE-2.0.txt
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. #ifndef __ctkXnatConnectionTest_h
  15. #define __ctkXnatConnectionTest_h
  16. #include <QObject>
  17. class ctkXnatConnectionTestCasePrivate;
  18. class ctkXnatConnectionTestCase: public QObject
  19. {
  20. Q_OBJECT
  21. void wait(int msec);
  22. public:
  23. explicit ctkXnatConnectionTestCase();
  24. virtual ~ctkXnatConnectionTestCase();
  25. private slots:
  26. void initTestCase();
  27. void cleanupTestCase();
  28. void testParentChild();
  29. void testProjectList();
  30. void testResourceUri();
  31. void testCreateProject();
  32. void testCreateSubject();
  33. private:
  34. QScopedPointer<ctkXnatConnectionTestCasePrivate> d_ptr;
  35. Q_DECLARE_PRIVATE(ctkXnatConnectionTestCase);
  36. Q_DISABLE_COPY(ctkXnatConnectionTestCase);
  37. };
  38. // --------------------------------------------------------------------------
  39. int ctkXnatConnectionTest(int argc, char* argv[]);
  40. #endif