equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <QtTest/QtTest> |
|
19 |
|
20 #include "testrunner.h" |
|
21 #include "ut_cntmaptileservice.h" |
|
22 |
|
23 int main(int argc, char *argv[]) |
|
24 { |
|
25 bool promptOnExit(true); |
|
26 for (int i=0; i<argc; i++) { |
|
27 if (QString(argv[i]) == "-noprompt") |
|
28 promptOnExit = false; |
|
29 } |
|
30 // printf("Running tests...\n"); |
|
31 |
|
32 QApplication app(argc, argv); |
|
33 |
|
34 TestRunner testRunner("ut_maptilefetcher"); |
|
35 |
|
36 T_MaptileServiceTest maptileService; |
|
37 testRunner.runTests( maptileService ); |
|
38 |
|
39 testRunner.printResults(); |
|
40 |
|
41 if (promptOnExit) { |
|
42 // printf("Press any key...\n"); |
|
43 getchar(); |
|
44 } |
|
45 return 0; |
|
46 } |
|
47 |