Changeset 799 for mcbuilder/trunk/tests/main.cpp
- Timestamp:
- 08/09/08 21:44:20 (5 months ago)
- Files:
-
- 1 modified
-
mcbuilder/trunk/tests/main.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mcbuilder/trunk/tests/main.cpp
r798 r799 1 /********************************************************************************* 1 2 3 Copyright 2008 MakingThings 4 5 Licensed under the Apache License, 6 Version 2.0 (the "License"); you may not use this file except in compliance 7 with the License. You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software distributed 12 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 CONDITIONS OF ANY KIND, either express or implied. See the License for 14 the specific language governing permissions and limitations under the License. 15 16 *********************************************************************************/ 2 17 3 18 #include <QtTest/QtTest> 19 #include <QApplication> 20 #include "MainWindow.h" 4 21 #include "TestProjectManager.h" 5 22 #include "TestBuilder.h" 6 23 7 int main(int argc, char** argv) 24 /* 25 A test suite that fires off each unit test in succession. 26 */ 27 int main(int argc, char* argv[]) 8 28 { 9 29 (void)argc; 10 30 (void)argv; 31 QApplication app(argc, argv); 32 MainWindow window; 11 33 12 34 TestProjectManager testProjectManager; 13 35 QTest::qExec(&testProjectManager); 14 36 15 TestBuilder testBuilder ;37 TestBuilder testBuilder(&window); 16 38 QTest::qExec(&testBuilder); 17 39 }
