equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 // |
|
15 |
|
16 #include "cactivewaiter.h" |
|
17 #include "ctestimapservermtmlocalsubscribe.h" |
|
18 |
|
19 |
|
20 CTestImapServerMtmLocalSubscribe::CTestImapServerMtmLocalSubscribe( ) |
|
21 { |
|
22 |
|
23 } |
|
24 |
|
25 CTestImapServerMtmLocalSubscribe::~CTestImapServerMtmLocalSubscribe( ) |
|
26 { |
|
27 |
|
28 } |
|
29 |
|
30 void CTestImapServerMtmLocalSubscribe::TestLocalSubscribeL( ) |
|
31 { |
|
32 INFO_PRINTF1( _L( "TestLocalSubscribeL" ) ); |
|
33 |
|
34 DoConnectL( ); |
|
35 ASSERT_EQUALS(iActiveWaiter->iStatus.Int( ), KErrNone ); |
|
36 |
|
37 // DoLocalSubscribe( ); |
|
38 iSelection->Reset( ); |
|
39 iSelection->AppendL( iImapAccount.iImapService ); |
|
40 |
|
41 iImapServerMtm->StartCommandL( *iSelection, |
|
42 KIMAP4MTMConnect, |
|
43 KNullDesC8, |
|
44 iActiveWaiter->iStatus ); |
|
45 |
|
46 iActiveWaiter->WaitActive( ); |
|
47 |
|
48 DoDisconnectL( ); |
|
49 ASSERT_EQUALS(iActiveWaiter->iStatus.Int( ), KErrNone ); |
|
50 |
|
51 INFO_PRINTF1( _L( "TestLocalSubscribeL complete" ) ); |
|
52 } |
|
53 |
|
54 CTestSuite* CTestImapServerMtmLocalSubscribe::CreateSuiteL( const TDesC& aName ) |
|
55 { |
|
56 SUB_SUITE; |
|
57 ADD_ASYNC_TEST_STEP( TestLocalSubscribeL ); |
|
58 END_SUITE; |
|
59 } |