telutils/keysequencerecognitionservice/tsrc/ut_keysequencerecognitionprovider/ut_keysequencerecognitionprovider.h
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 #ifndef UT_KEYSEQUENCERECOGNITIONPROVIDER_H |
|
19 #define UT_KEYSEQUENCERECOGNITIONPROVIDER_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <mockservice.h> |
|
23 |
|
24 class KeySequenceRecognitionProvider; |
|
25 |
|
26 class UT_KeySequenceRecognitionProvider : public QObject, public MockService |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 |
|
32 UT_KeySequenceRecognitionProvider(); |
|
33 ~UT_KeySequenceRecognitionProvider(); |
|
34 |
|
35 private slots: |
|
36 |
|
37 void init(); |
|
38 void cleanup(); |
|
39 |
|
40 void t_setupLocalization(); |
|
41 void t_keySequenceValidator(); |
|
42 void t_keySequenceValidatorEmptyString(); |
|
43 void t_executeValidKeySequence(); |
|
44 void t_executeInvalidKeySequence(); |
|
45 |
|
46 private: |
|
47 KeySequenceRecognitionProvider *m_provider; |
|
48 }; |
|
49 |
|
50 #endif // UT_KEYSEQUENCERECOGNITIONPROVIDER_H |
|