featuremgmt/featureregistry/test/helper/maxcapability/maxcapability.cpp
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2005-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 // Checks capabilities of featreg.dll. Succeeds if this links and runs a query.
       
    15 // (Changing capability from "All -Tcb" to "All" should make this test fail.
       
    16 // Note: Must have a valid feature registry configuration.
       
    17 // 
       
    18 //
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalComponent
       
    23  @test
       
    24 */
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <featreg.h>
       
    28 
       
    29 TInt E32Main()
       
    30 	{
       
    31 	TInt result = RFeatureRegistry::QuerySupportS(TUid::Null());
       
    32 	if (result >= 0)
       
    33 		{
       
    34 		return KErrNone; // success
       
    35 		}
       
    36 	return result;
       
    37 	}