telephonyserverplugins/common_tsy/test/component/src/cctsyimsfu.cpp
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // The TEFUnit test suite for IMS in the Common TSY.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20 */
       
    21 
       
    22 #include "cctsyimsfu.h"
       
    23 #include <etel.h>
       
    24 #include <etelmm.h>
       
    25 #include <et_clsvr.h>
       
    26 #include <ctsy/mmtsy_names.h>
       
    27 #include <ctsy/serviceapi/mmtsy_ipcdefs.h>
       
    28 #include "tmockltsydata.h"
       
    29 #include <ctsy/serviceapi/gsmerror.h>
       
    30 
       
    31 CTestSuite* CCTsyIMSFU::CreateSuiteL(const TDesC& aName)
       
    32 	{
       
    33 	SUB_SUITE;
       
    34 
       
    35 	ADD_TEST_STEP_ISO_CPP(CCTsyIMSFU, TestImsAuthenticate0001L);
       
    36 	ADD_TEST_STEP_ISO_CPP(CCTsyIMSFU, TestImsAuthenticate0002L);
       
    37 	ADD_TEST_STEP_ISO_CPP(CCTsyIMSFU, TestImsAuthenticate0003L);
       
    38 	ADD_TEST_STEP_ISO_CPP(CCTsyIMSFU, TestImsAuthenticate0004L);
       
    39 	ADD_TEST_STEP_ISO_CPP(CCTsyIMSFU, TestImsAuthenticate0005L);
       
    40 	ADD_TEST_STEP_ISO_CPP(CCTsyIMSFU, TestNotifyImsAuthorizationInfoChange0001L);
       
    41 
       
    42 	END_SUITE;
       
    43 	}
       
    44 
       
    45 
       
    46 //
       
    47 // Actual test cases
       
    48 //
       
    49 
       
    50 
       
    51 /**
       
    52 @SYMTestCaseID BA-CTSY-IMS-MIA-0001
       
    53 @SYMComponent  telephony_ctsy
       
    54 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::ImsAuthenticate
       
    55 @SYMTestPriority High
       
    56 @SYMTestActions Invokes RMobilePhone::ImsAuthenticate
       
    57 @SYMTestExpectedResults Pass
       
    58 @SYMTestType CT
       
    59 */
       
    60 void CCTsyIMSFU::TestImsAuthenticate0001L()
       
    61 	{
       
    62 
       
    63 	OpenEtelServerL(EUseExtendedError);
       
    64 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
       
    65 	OpenPhoneL();
       
    66 
       
    67 	RBuf8 data;
       
    68 	CleanupClosePushL(data);
       
    69 
       
    70  	//-------------------------------------------------------------------------
       
    71 	// TEST A: failure to dispatch request to LTSY
       
    72  	//-------------------------------------------------------------------------
       
    73 
       
    74 	RMobilePhone::TImsAuthenticateDataV5 expAuthenticateData;
       
    75 	expAuthenticateData.iAUTN.Copy(_L8("11"));
       
    76 	expAuthenticateData.iRAND.Copy(_L8("22"));
       
    77 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
    78 							expAuthenticateLtsyData( expAuthenticateData );
       
    79 	expAuthenticateLtsyData.SerialiseL(data);
       
    80 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data, KErrNotSupported);
       
    81 
       
    82 	TRequestStatus reqStatus;
       
    83 	RMobilePhone::TImsAuthenticateDataV5 authenticateData;
       
    84 	authenticateData.iAUTN.Copy(_L8("11"));
       
    85 	authenticateData.iRAND.Copy(_L8("22"));
       
    86 	RMobilePhone::TImsAuthenticateDataV5Pckg authenticateDataPckg(authenticateData);
       
    87 	iPhone.ImsAuthenticate(reqStatus, authenticateDataPckg);
       
    88 	User::WaitForRequest(reqStatus);
       
    89 	ASSERT_EQUALS(KErrNotSupported, reqStatus.Int());
       
    90 	AssertMockLtsyStatusL();
       
    91 	
       
    92 	//-------------------------------------------------------------------------
       
    93 	// TEST B: failure on completion of pending request from LTSY->CTSY
       
    94  	//-------------------------------------------------------------------------
       
    95 
       
    96 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data);
       
    97 
       
    98 	RMobilePhone::TImsAuthenticateDataV5 completeAuthenticateData;
       
    99 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   100 							completeAuthenticateLtsyData(completeAuthenticateData);
       
   101 	completeAuthenticateData.iAUTS.Copy(_L8("88"));
       
   102     data.Close();
       
   103     completeAuthenticateLtsyData.SerialiseL(data); 
       
   104 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrGeneral, data);
       
   105 
       
   106 	iPhone.ImsAuthenticate(reqStatus, authenticateDataPckg);
       
   107 	User::WaitForRequest(reqStatus);
       
   108 	ASSERT_EQUALS(KErrGeneral, reqStatus.Int());
       
   109 	AssertMockLtsyStatusL();
       
   110 	ASSERT_EQUALS(completeAuthenticateData.iAUTS, authenticateData.iAUTS);
       
   111 	
       
   112 	//-------------------------------------------------------------------------
       
   113 	// TEST: increase coverage
       
   114  	//-------------------------------------------------------------------------
       
   115 	
       
   116 	data.Close();
       
   117 	expAuthenticateLtsyData.SerialiseL(data);
       
   118 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data);
       
   119 
       
   120 	// pack special constant _L8("17796")
       
   121 	// for recognize null pointer packing test case in CMockPhoneMessHandler::Complete
       
   122 	completeAuthenticateData.iAUTS.Copy(_L8("17796"));
       
   123     data.Close();
       
   124     completeAuthenticateLtsyData.SerialiseL(data); 
       
   125 	completeAuthenticateData.iAUTS.Copy(_L8("88"));
       
   126 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrGeneral, data);
       
   127 
       
   128 	iPhone.ImsAuthenticate(reqStatus, authenticateDataPckg);
       
   129 	User::WaitForRequest(reqStatus);
       
   130 	ASSERT_EQUALS(KErrGeneral, reqStatus.Int());
       
   131 	AssertMockLtsyStatusL();
       
   132 
       
   133  	//-------------------------------------------------------------------------
       
   134 	// TEST C: Successful completion request of
       
   135 	// RMobilePhone::ImsAuthenticate when result is not cached.
       
   136  	//-------------------------------------------------------------------------
       
   137 
       
   138 	data.Close();
       
   139 	expAuthenticateLtsyData.SerialiseL(data);
       
   140 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data);
       
   141 
       
   142 	completeAuthenticateData.iRES.Copy(_L8("66"));
       
   143 	completeAuthenticateData.iIK.Copy(_L8("77"));
       
   144 	completeAuthenticateData.iCK.Copy(_L8("88"));
       
   145     data.Close();
       
   146     completeAuthenticateLtsyData.SerialiseL(data); 
       
   147 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrNone, data);
       
   148 
       
   149 	iPhone.ImsAuthenticate(reqStatus, authenticateDataPckg);
       
   150 	User::WaitForRequest(reqStatus);
       
   151 	ASSERT_EQUALS(KErrNone, reqStatus.Int());
       
   152 	AssertMockLtsyStatusL();
       
   153 	// check only fields which are used for returned data
       
   154 	ASSERT_EQUALS(completeAuthenticateData.iRES, authenticateData.iRES);
       
   155 	ASSERT_EQUALS(completeAuthenticateData.iIK,  authenticateData.iIK);
       
   156 	ASSERT_EQUALS(completeAuthenticateData.iCK,  authenticateData.iCK);
       
   157 	
       
   158  	//-------------------------------------------------------------------------
       
   159 	// TEST E: Unsolicited completion of RMobilePhone::ImsAuthenticate
       
   160 	// from LTSY.
       
   161  	//-------------------------------------------------------------------------
       
   162 
       
   163 	iMockLTSY.NotifyTerminated(reqStatus);	
       
   164 	//send completion
       
   165 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrNone, data);
       
   166 	// wait for completion
       
   167 	User::WaitForRequest(reqStatus);
       
   168 	ASSERT_EQUALS(KErrNone, reqStatus.Int());
       
   169 	AssertMockLtsyStatusL();
       
   170 
       
   171 	iMockLTSY.NotifyTerminated(reqStatus);	
       
   172 	//send completion
       
   173 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrGeneral, data);
       
   174 	// wait for completion
       
   175 	User::WaitForRequest(reqStatus);
       
   176 	ASSERT_EQUALS(KErrNone, reqStatus.Int());
       
   177 	AssertMockLtsyStatusL();
       
   178 
       
   179 	CleanupStack::PopAndDestroy(2, this); // data, this
       
   180 	
       
   181 	}
       
   182 
       
   183 
       
   184 /**
       
   185 @SYMTestCaseID BA-CTSY-IMS-MIA-0002
       
   186 @SYMComponent  telephony_ctsy
       
   187 @SYMTestCaseDesc Test support in CTSY for cancelling of RMobilePhone::ImsAuthenticate
       
   188 @SYMTestPriority High
       
   189 @SYMTestActions Invokes cancelling of RMobilePhone::ImsAuthenticate
       
   190 @SYMTestExpectedResults Pass
       
   191 @SYMTestType CT
       
   192 */
       
   193 void CCTsyIMSFU::TestImsAuthenticate0002L()
       
   194 	{
       
   195 
       
   196 // This test should test cancellation of ImsAuthenticate
       
   197 // If this API does not have a cancel, the test step should be completely removed.
       
   198 
       
   199 	OpenEtelServerL(EUseExtendedError);
       
   200 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
       
   201 	OpenPhoneL();
       
   202 
       
   203 	TRequestStatus mockLtsyStatus;
       
   204 	iMockLTSY.NotifyTerminated(mockLtsyStatus);
       
   205 
       
   206 	RBuf8 data;
       
   207 	CleanupClosePushL(data);
       
   208 
       
   209  	//-------------------------------------------------------------------------
       
   210 	// Test cancelling of RMobilePhone::ImsAuthenticate
       
   211  	//-------------------------------------------------------------------------
       
   212  	
       
   213 	RMobilePhone::TImsAuthenticateDataV5 expAuthenticateData;
       
   214 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   215 							expAuthenticateLtsyData( expAuthenticateData );
       
   216 	expAuthenticateLtsyData.SerialiseL(data);
       
   217 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data);
       
   218 
       
   219 	RMobilePhone::TImsAuthenticateDataV5 completeAuthenticateData;
       
   220 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   221 							completeAuthenticateLtsyData(completeAuthenticateData);
       
   222     data.Close();
       
   223     completeAuthenticateLtsyData.SerialiseL(data); 
       
   224 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrNone, data, 10);
       
   225 
       
   226 	TRequestStatus reqStatus;
       
   227 	RMobilePhone::TImsAuthenticateDataV5 authenticateData;
       
   228 	RMobilePhone::TImsAuthenticateDataV5Pckg authenticateDataPckg(authenticateData);
       
   229 	iPhone.ImsAuthenticate(reqStatus, authenticateDataPckg);
       
   230 	
       
   231 	iPhone.CancelAsyncRequest(EMobilePhoneIMSAuthenticate);
       
   232 	
       
   233 	User::WaitForRequest(reqStatus);
       
   234 	ASSERT_EQUALS(KErrCancel, reqStatus.Int());
       
   235 
       
   236 	// Wait for completion of iMockLTSY.NotifyTerminated
       
   237 	User::WaitForRequest(mockLtsyStatus);
       
   238 	ASSERT_EQUALS(KErrNone, mockLtsyStatus.Int());
       
   239 	AssertMockLtsyStatusL();
       
   240 	
       
   241 	CleanupStack::PopAndDestroy(2); // data, this
       
   242 	
       
   243 	}
       
   244 
       
   245 
       
   246 /**
       
   247 @SYMTestCaseID BA-CTSY-IMS-MIA-0003
       
   248 @SYMComponent  telephony_ctsy
       
   249 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::ImsAuthenticate with bad parameter data
       
   250 @SYMTestPriority High
       
   251 @SYMTestActions Invokes RMobilePhone::ImsAuthenticate with bad parameter data
       
   252 @SYMTestExpectedResults Pass
       
   253 @SYMTestType CT
       
   254 */
       
   255 void CCTsyIMSFU::TestImsAuthenticate0003L()
       
   256 	{
       
   257 
       
   258 	OpenEtelServerL(EUseExtendedError);
       
   259 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
       
   260 	OpenPhoneL();
       
   261 
       
   262 	TRequestStatus reqStatus;
       
   263 
       
   264 	//-------------------------------------------------------------------------
       
   265 	// Test A: Test passing wrong version of parameters to
       
   266 	// RMobilePhone::ImsAuthenticate
       
   267  	//-------------------------------------------------------------------------
       
   268 
       
   269 	RMobilePhone::TImsAuthenticateDataV5 expAuthenticateData;
       
   270 	TInt wrongAuthenticateData;
       
   271 	TPckg<TInt> wrongAuthenticateDataPckg(wrongAuthenticateData);
       
   272 	memcpy(&wrongAuthenticateData, &expAuthenticateData, sizeof(wrongAuthenticateData));
       
   273 	
       
   274 	iPhone.ImsAuthenticate(reqStatus, wrongAuthenticateDataPckg);
       
   275 	
       
   276 	User::WaitForRequest(reqStatus);
       
   277 	ASSERT_EQUALS(KErrArgument, reqStatus.Int());
       
   278 	AssertMockLtsyStatusL();
       
   279 
       
   280 	CleanupStack::PopAndDestroy(this);
       
   281 
       
   282 	}
       
   283 
       
   284 
       
   285 /**
       
   286 @SYMTestCaseID BA-CTSY-IMS-MIA-0004
       
   287 @SYMComponent  telephony_ctsy
       
   288 @SYMTestCaseDesc Test support in CTSY for multiple client requests to RMobilePhone::ImsAuthenticate
       
   289 @SYMTestPriority High
       
   290 @SYMTestActions Invokes multiple client requests to RMobilePhone::ImsAuthenticate
       
   291 @SYMTestExpectedResults Pass
       
   292 @SYMTestType CT
       
   293 */
       
   294 void CCTsyIMSFU::TestImsAuthenticate0004L()
       
   295 	{
       
   296 
       
   297 					
       
   298 	OpenEtelServerL(EUseExtendedError);
       
   299 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
       
   300 	OpenPhoneL();
       
   301 
       
   302 	RBuf8 data;
       
   303 	CleanupClosePushL(data);
       
   304 
       
   305 	// Open second client
       
   306 	RTelServer telServer2;
       
   307 	TInt ret = telServer2.Connect();
       
   308 	ASSERT_EQUALS(KErrNone, ret);
       
   309 	CleanupClosePushL(telServer2);
       
   310 
       
   311 	RMobilePhone phone2;
       
   312 	ret = phone2.Open(telServer2, KMmTsyPhoneName);
       
   313 	ASSERT_EQUALS(KErrNone, ret);
       
   314 	CleanupClosePushL(phone2);
       
   315 
       
   316 	//-------------------------------------------------------------------------
       
   317 	// Test A: Test multiple clients requesting RMobilePhone::ImsAuthenticate
       
   318  	//-------------------------------------------------------------------------
       
   319 
       
   320 	// setting and execute 1st request
       
   321 	RMobilePhone::TImsAuthenticateDataV5 expAuthenticateData;
       
   322 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   323 	                             expAuthenticateLtsyData( expAuthenticateData );
       
   324 	expAuthenticateLtsyData.SerialiseL(data);
       
   325 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data);
       
   326 
       
   327 	RMobilePhone::TImsAuthenticateDataV5 completeAuthenticateData;
       
   328 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   329 	                       completeAuthenticateLtsyData(completeAuthenticateData);
       
   330 	completeAuthenticateData.iRES.Copy(_L8("33"));
       
   331 	completeAuthenticateData.iIK.Copy(_L8("44"));
       
   332 	completeAuthenticateData.iCK.Copy(_L8("55"));
       
   333     data.Close();
       
   334     completeAuthenticateLtsyData.SerialiseL(data); 
       
   335 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrNone, data, 10);
       
   336 
       
   337 	TRequestStatus reqStatus;
       
   338 	RMobilePhone::TImsAuthenticateDataV5 authenticateData;
       
   339 	RMobilePhone::TImsAuthenticateDataV5Pckg authenticateDataPckg(authenticateData);
       
   340 	iPhone.ImsAuthenticate(reqStatus, authenticateDataPckg);
       
   341 	
       
   342 	// setting and execute 2nd request
       
   343 	RMobilePhone::TImsAuthenticateDataV5 expAuthenticateData2;
       
   344 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   345 							expAuthenticateLtsyData2( expAuthenticateData2 );
       
   346 	data.Close();
       
   347 	expAuthenticateLtsyData2.SerialiseL(data);
       
   348 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data);
       
   349 
       
   350 	RMobilePhone::TImsAuthenticateDataV5 completeAuthenticateData2;
       
   351 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   352 							completeAuthenticateLtsyData2(completeAuthenticateData2);
       
   353 	completeAuthenticateData2.iRES.Copy(_L8("66"));
       
   354 	completeAuthenticateData2.iIK.Copy(_L8("77"));
       
   355 	completeAuthenticateData2.iCK.Copy(_L8("88"));
       
   356     data.Close();
       
   357     completeAuthenticateLtsyData2.SerialiseL(data); 
       
   358 	iMockLTSY.CompleteL(EMobilePhoneIMSAuthenticate, KErrNone, data);
       
   359 
       
   360 	TRequestStatus reqStatus2;
       
   361 	RMobilePhone::TImsAuthenticateDataV5 authenticateData2;
       
   362 	RMobilePhone::TImsAuthenticateDataV5Pckg authenticateDataPckg2(authenticateData2);
       
   363 	phone2.ImsAuthenticate(reqStatus2, authenticateDataPckg2);
       
   364 	
       
   365 	// test completion
       
   366 	User::WaitForRequest(reqStatus2);
       
   367 	ASSERT_EQUALS(KErrNone, reqStatus2.Int());
       
   368 	// check only fields which are used for returned data
       
   369 	ASSERT_EQUALS(completeAuthenticateData2.iRES, authenticateData2.iRES);
       
   370 	ASSERT_EQUALS(completeAuthenticateData2.iIK,  authenticateData2.iIK);
       
   371 	ASSERT_EQUALS(completeAuthenticateData2.iCK,  authenticateData2.iCK);
       
   372 
       
   373 	User::WaitForRequest(reqStatus);
       
   374 	ASSERT_EQUALS(KErrNone, reqStatus.Int());
       
   375 	// check only fields which are used for returned data
       
   376 	ASSERT_EQUALS(completeAuthenticateData.iRES, authenticateData.iRES);
       
   377 	ASSERT_EQUALS(completeAuthenticateData.iIK,  authenticateData.iIK);
       
   378 	ASSERT_EQUALS(completeAuthenticateData.iCK,  authenticateData.iCK);
       
   379 
       
   380 	AssertMockLtsyStatusL();
       
   381 	// Done !
       
   382 	CleanupStack::PopAndDestroy(4, this); // phone2, telServer2, data, this
       
   383 
       
   384 	}
       
   385 
       
   386 
       
   387 /**
       
   388 @SYMTestCaseID BA-CTSY-IMS-MIA-0005
       
   389 @SYMComponent  telephony_ctsy
       
   390 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::ImsAuthenticate with timeout
       
   391 @SYMTestPriority High
       
   392 @SYMTestActions Invokes RMobilePhone::ImsAuthenticate and tests for timeout
       
   393 @SYMTestExpectedResults Pass
       
   394 @SYMTestType CT
       
   395 */
       
   396 void CCTsyIMSFU::TestImsAuthenticate0005L()
       
   397 	{
       
   398 
       
   399 	OpenEtelServerL(EUseExtendedError);
       
   400 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
       
   401 	OpenPhoneL();
       
   402 
       
   403 	RBuf8 data;
       
   404 	CleanupClosePushL(data);
       
   405 
       
   406 	//-------------------------------------------------------------------------
       
   407 	// Test A: Test timeout of RMobilePhone::ImsAuthenticate
       
   408  	//-------------------------------------------------------------------------
       
   409 
       
   410 	RMobilePhone::TImsAuthenticateDataV5 expAuthenticateData;
       
   411 	TMockLtsyData1<RMobilePhone::TImsAuthenticateDataV5>
       
   412 							expAuthenticateLtsyData( expAuthenticateData );
       
   413 	expAuthenticateLtsyData.SerialiseL(data);
       
   414 	iMockLTSY.ExpectL(EMobilePhoneIMSAuthenticate, data);
       
   415 
       
   416 	TRequestStatus reqStatus;
       
   417 	RMobilePhone::TImsAuthenticateDataV5 authenticateData;
       
   418 	RMobilePhone::TImsAuthenticateDataV5Pckg authenticateDataPckg(authenticateData);
       
   419 	iPhone.ImsAuthenticate(reqStatus, authenticateDataPckg);
       
   420 	
       
   421 	User::WaitForRequest(reqStatus);
       
   422 	ASSERT_EQUALS(KErrTimedOut, reqStatus.Int());
       
   423 
       
   424 	// Done !
       
   425 	CleanupStack::PopAndDestroy(2, this); // data, this
       
   426 
       
   427 	}
       
   428 
       
   429 
       
   430 /**
       
   431 @SYMTestCaseID BA-CTSY-IMS-MNIAIC-0001
       
   432 @SYMComponent  telephony_ctsy
       
   433 @SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyImsAuthorizationInfoChange
       
   434 @SYMTestPriority High
       
   435 @SYMTestActions Invokes RMobilePhone::NotifyImsAuthorizationInfoChange
       
   436 @SYMTestExpectedResults Pass
       
   437 @SYMTestType CT
       
   438 */
       
   439 void CCTsyIMSFU::TestNotifyImsAuthorizationInfoChange0001L()
       
   440 	{
       
   441 
       
   442 	OpenEtelServerL(EUseExtendedError);
       
   443 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
       
   444 	OpenPhoneL();
       
   445 
       
   446 	RBuf8 data;
       
   447 	CleanupClosePushL(data);
       
   448 
       
   449 	TRequestStatus reqStatus;
       
   450 	iPhone.NotifyImsAuthorizationInfoChange(reqStatus);
       
   451 	User::WaitForRequest(reqStatus);
       
   452 	ASSERT_EQUALS(KErrNotSupported, reqStatus.Int());
       
   453 
       
   454 	AssertMockLtsyStatusL();
       
   455 	CleanupStack::PopAndDestroy(2, this); // data, this
       
   456 	
       
   457 	}
       
   458 
       
   459 
       
   460