equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
533 } |
533 } |
534 |
534 |
535 case RHcrTest::ECtrlSwitchFileRepository: |
535 case RHcrTest::ECtrlSwitchFileRepository: |
536 { |
536 { |
537 TInt r; |
537 TInt r; |
538 TAny* args[2]; |
538 TAny* args[2]; // args[1] length includes null terminating char |
539 TEST_MEMGET(a1, args, sizeof(args)); |
539 TEST_MEMGET(a1, args, sizeof(args)); |
540 const TText* fileRepName = (TText*) args[0]; |
540 |
541 |
541 TBuf8<MAX_FILENAME_LEN> fileName; |
542 r = gObserver.SwitchRepository(fileRepName, HCR::HCRInternal::ECoreRepos); |
542 TEST_MEMGET(args[0], (TAny*)fileName.Ptr(), ((TInt)args[1])); |
|
543 |
|
544 r = gObserver.SwitchRepository(fileName.Ptr(), HCR::HCRInternal::ECoreRepos); |
543 if (r != KErrNone) |
545 if (r != KErrNone) |
544 { |
546 { |
545 HCR_TRACE_RETURN(r); |
547 HCR_TRACE_RETURN(r); |
546 } |
548 } |
547 else |
549 else |