1 /*========================================================================= 2 3 Library: CTK 4 5 Copyright (c) 2013 University College London, Centre for Medical Image Computing 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0.txt 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 19 =========================================================================*/ 20 21 #ifndef __CTKXNATSESSIONTEST_H 22 #define __CTKXNATSESSIONTEST_H 23 24 #include <QObject> 25 26 class ctkXnatSessionTestCasePrivate; 27 28 class ctkXnatSessionTestCase: public QObject 29 { 30 Q_OBJECT 31 32 void wait(int msec); 33 34 public: 35 36 explicit ctkXnatSessionTestCase(); 37 virtual ~ctkXnatSessionTestCase(); 38 39 private slots: 40 41 void initTestCase(); 42 43 void init(); 44 45 void cleanupTestCase(); 46 47 void cleanup(); 48 49 void testParentChild(); 50 51 void testSession(); 52 53 void testAuthenticationError(); 54 55 void testProjectList(); 56 57 void testResourceUri(); 58 59 void testCreateProject(); 60 61 void testCreateSubject(); 62 63 void testAddResourceFolder(); 64 65 void testUploadAndDownloadFile(); 66 67 private: 68 QScopedPointer<ctkXnatSessionTestCasePrivate> d_ptr; 69 70 Q_DECLARE_PRIVATE(ctkXnatSessionTestCase) 71 Q_DISABLE_COPY(ctkXnatSessionTestCase) 72 }; 73 74 // -------------------------------------------------------------------------- 75 int ctkXnatSessionTest(int argc, char* argv[]); 76 77 #endif 78