telutils/keysequencerecognitionservice/tsrc/ut_simcontrolkeysecuencehandler/ut_simcontrolkeysequencehandler.cpp
equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <QtGui> |
18 #include <QtGui> |
19 #include <QtTest/QtTest> |
19 #include <QtTest/QtTest> |
20 #include "UT_SimControlKeySequenceHandler.h" |
20 #include <secuimanualsecuritysettings.h> |
|
21 #include "ut_simcontrolkeysequencehandler.h" |
21 #include "simcontrolkeysequencehandler.h" |
22 #include "simcontrolkeysequencehandler.h" |
22 #include "keysequencerecognitionservicedefs.h" |
23 #include "keysequencerecognitionservicedefs.h" |
23 #include "qtestmains60.h" |
24 #include "qtestmains60.h" |
24 |
25 |
25 _LIT(KOldPinCode, "1234"); |
26 _LIT(KOldPinCode, "1234"); |
171 |
172 |
172 |
173 |
173 void UT_SimControlKeySequenceHandler::t_keySequenceValidator() |
174 void UT_SimControlKeySequenceHandler::t_keySequenceValidator() |
174 { |
175 { |
175 QString expectedValidator = |
176 QString expectedValidator = |
176 QRegExp::escape(KCodeChangePin1) + "|" + |
177 KCodeChangePin1 + "|" + |
177 QRegExp::escape(KCodeChangePin2) + "|" + |
178 KCodeChangePin2 + "|" + |
178 QRegExp::escape(KCodeUnblockPin1) + "|" + |
179 KCodeUnblockPin1 + "|" + |
179 QRegExp::escape(KCodeUnblockPin2); |
180 KCodeUnblockPin2; |
180 |
181 |
181 expect("KeySequenceHandler::setKeySequenceValidator") |
182 expect("KeySequenceHandler::setKeySequenceValidator") |
182 .with(expectedValidator); |
183 .with(expectedValidator); |
183 |
184 |
184 QScopedPointer<SimControlKeySequenceHandler> handler( |
185 QScopedPointer<SimControlKeySequenceHandler> handler( |