phoneclientserver/phoneclient/tsrc/public/basic/ut_ussd/ut_ussd.h
changeset 15 d7fc66ccd6fb
child 27 7eb70891911c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneclientserver/phoneclient/tsrc/public/basic/ut_ussd/ut_ussd.h	Mon May 03 13:01:45 2010 +0300
@@ -0,0 +1,76 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+// include files
+#include <QObject> // base class
+
+// forward declarations
+class CPhCltUssd;
+class CPhCltUssdImp;
+class CPhCltUssdSatClient;
+
+// class declaration
+class Ut_Ussd: public QObject
+{
+    Q_OBJECT
+
+private slots: // test cases
+    
+    // Test for CPhCltUssd
+    void testTestEnv();
+    void openAndCloseApi();
+    void sendUssd16bit_data();
+    void sendUssd16bit();
+    void sendUssd8bit_data();
+    void sendUssd8bit();
+    void sendCancel();
+
+    // Test for CPhCltUssdSatClient
+    void openAndCloseSatApi();
+    void sendSatMessage_data();
+    void sendSatMessage();
+
+    // receiving messages
+	void sendReceive_data();
+	void sendReceive();
+	void testMultipleIncomingMessages();
+
+    // cases for internal api
+	void testUssdInternalApi_data();
+	void testUssdInternalApi();
+
+private: // tet blocks
+
+    void createUssdApi(bool ui);
+    void createUssdInternalApi(bool ui);
+    void createUssdSatApi(bool ui);
+	void send(const QString& msg);
+	void receive(const QString& msg, int type);
+	void networkRelease(int error);
+	void activeSleep(int ms);
+
+
+private: // test-related members
+
+    // phone client
+    CPhCltUssd *m_ussdApi;
+    CPhCltUssdImp *m_ussdInternalApi;
+    CPhCltUssdSatClient *m_ussdSatApi;
+
+};
+