equal
deleted
inserted
replaced
1 /** |
|
2 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Manasij Roy, Nalina Hariharan |
|
14 * |
|
15 * |
|
16 * Description: Testing the GetServices API of Social Mobile Framework, expected to |
|
17 * return a list of installed service providers for a given interface. |
|
18 */ |
|
19 |
|
20 #include <QtTest> |
|
21 |
|
22 #include "smfclient.h" |
|
23 |
|
24 class TestSmfGetServices : public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 private slots: |
|
29 void initTestCase(); |
|
30 void testConnectToServer(); |
|
31 void cleanupTestCase(); |
|
32 |
|
33 private: |
|
34 SmfClient* m_smf; |
|
35 }; |
|
36 |
|
37 void TestSmfGetServices::initTestCase() |
|
38 { |
|
39 m_smf = new SmfClient(); |
|
40 } |
|
41 |
|
42 void TestSmfGetServices::testConnectToServer() |
|
43 { |
|
44 QList<SmfProvider> *services = m_smf->GetServices("org.symbian.smf.contacts.fetcher"); |
|
45 qDebug() << "SmfClient::GetServices returned " << services->length() << " services."; |
|
46 } |
|
47 |
|
48 void TestSmfGetServices::cleanupTestCase() |
|
49 { |
|
50 delete m_smf; |
|
51 } |
|
52 |
|
53 QTEST_MAIN(TestSmfGetServices) |
|
54 #include "testsmfgetservices.moc" |
|
55 |
|