equal
deleted
inserted
replaced
172 |
172 |
173 RTP_EUNIT_ASSERT_EQUALS(iRtpManager->StartConnection(KIAPID), KErrNone); |
173 RTP_EUNIT_ASSERT_EQUALS(iRtpManager->StartConnection(KIAPID), KErrNone); |
174 iRtpManager->Close(); |
174 iRtpManager->Close(); |
175 } |
175 } |
176 |
176 |
177 void UT_CRtpManager::UT_CRtpManager_StartConnection_OneL( ) |
177 void UT_CRtpManager::UT_CRtpManager_StartConnection_1L( ) |
178 { |
178 { |
179 TInt result(KErrNone); |
179 TInt result(KErrNone); |
180 TRtpSdesParams params; |
180 TRtpSdesParams params; |
181 iRtpManager->OpenL( params, NULL, &iSocketServ, &iConnection ); |
181 iRtpManager->OpenL( params, NULL, &iSocketServ, &iConnection ); |
182 |
182 |
184 RTP_EUNIT_ASSERT_EQUALS(iRtpManager->StartConnection(KIAPID), KErrNotReady); |
184 RTP_EUNIT_ASSERT_EQUALS(iRtpManager->StartConnection(KIAPID), KErrNotReady); |
185 iSocketServ.iNextError = KErrNone; |
185 iSocketServ.iNextError = KErrNone; |
186 iRtpManager->Close(); |
186 iRtpManager->Close(); |
187 } |
187 } |
188 |
188 |
189 void UT_CRtpManager::UT_CRtpManager_StartConnection_TwoL( ) |
189 void UT_CRtpManager::UT_CRtpManager_StartConnection_2L( ) |
190 { |
190 { |
191 TInt result(KErrNone); |
191 TInt result(KErrNone); |
192 TRtpSdesParams params; |
192 TRtpSdesParams params; |
193 iRtpManager->OpenL( params, NULL, &iSocketServ, &iConnection ); |
193 iRtpManager->OpenL( params, NULL, &iSocketServ, &iConnection ); |
194 iConnection.iNextError = KErrNotReady; |
194 iConnection.iNextError = KErrNotReady; |
935 EUNIT_TEST( |
935 EUNIT_TEST( |
936 "StartConnection1 - test ", |
936 "StartConnection1 - test ", |
937 "CRtpManager", |
937 "CRtpManager", |
938 "StartConnection 1", |
938 "StartConnection 1", |
939 "FUNCTIONALITY", |
939 "FUNCTIONALITY", |
940 SetupL, UT_CRtpManager_StartConnection_OneL, Teardown) |
940 SetupL, UT_CRtpManager_StartConnection_1L, Teardown) |
941 |
941 |
942 |
942 |
943 EUNIT_TEST( |
943 EUNIT_TEST( |
944 "StartConnection2 - test ", |
944 "StartConnection2 - test ", |
945 "CRtpManager", |
945 "CRtpManager", |
946 "StartConnection2", |
946 "StartConnection2", |
947 "FUNCTIONALITY", |
947 "FUNCTIONALITY", |
948 SetupL, UT_CRtpManager_StartConnection_TwoL, Teardown) |
948 SetupL, UT_CRtpManager_StartConnection_2L, Teardown) |
949 |
949 |
950 EUNIT_TEST( |
950 EUNIT_TEST( |
951 "CancelStart - test ", |
951 "CancelStart - test ", |
952 "CRtpManager", |
952 "CRtpManager", |
953 "CancelStart", |
953 "CancelStart", |