homescreensrv_plat/sapi_homescreenplugin/tsrc/hspsconfigurationif/inc/mt_hsps_setactiveplugin_5.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Test case SetActivePlugin(5) test data
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_MT_HSPS_SETACTIVEPLUGIN_5_H
       
    20 #define C_MT_HSPS_SETACTIVEPLUGIN_5_H
       
    21 
       
    22 /* 
       
    23 SetActivePlugin(5)
       
    24 ------------------
       
    25  
       
    26 Test purpose
       
    27 
       
    28 The purpose of this test case is to verify that status element with KErrNotFound 
       
    29 error code is returned when defined plugin id is not found from active 
       
    30 configuration.
       
    31 
       
    32 Pre-conditions
       
    33 
       
    34 There must be installed test themes for Active Idle application and Typical 
       
    35 configuration must be set as active (Typical view 1 is set as active).
       
    36 
       
    37 Test steps
       
    38 
       
    39 Test step 1:
       
    40 •   Input:
       
    41     SetActivePlugin(“Not found plugin”)
       
    42 •   Expected output:
       
    43     Status element with KErrNotFound error code
       
    44 
       
    45 */
       
    46 
       
    47 // Test step 1 method:
       
    48 
       
    49 const TUint8 setactiveplugin_5_ts_1_method[] = "SetActivePlugin";
       
    50 
       
    51 // Test step 1 input:
       
    52 
       
    53 const TUint8 setactiveplugin_5_ts_1_input[] = {
       
    54 // SetActivePlugin(Input)
       
    55 // - Version 1.0
       
    56 // - Item count (LE)
       
    57 10,
       
    58 1,0,0,0,
       
    59 // - SetActivePlugin(Input)::pluginId
       
    60 //   - Variant name
       
    61 //     - Version 1.0
       
    62 //     - Semantic ID (LE)    
       
    63 //     - Variant name length (LE)
       
    64 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
    65 //     - Variant name
       
    66 10,
       
    67 12,0,0,0,
       
    68 8,0,0,0,
       
    69 34,
       
    70 'p','l','u','g','i','n','I','d',
       
    71 // - SetActivePlugin(Input)::pluginId
       
    72 //   - Variant value
       
    73 //     - Version 1.0
       
    74 //     - Variant value type, EVariantTypeDesC
       
    75 //     - Variant value length (LE)
       
    76 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
    77 //     - Variant value
       
    78 10,
       
    79 5,
       
    80 2,0,0,0,
       
    81 10,
       
    82 '9','9'
       
    83 };
       
    84 
       
    85 // Test step 1 output:
       
    86 
       
    87 const TUint8 setactiveplugin_5_ts_1_output[] = {
       
    88 // SetActivePlugin(Output)
       
    89 // - Version 1.0
       
    90 // - Item count (LE)
       
    91 10,
       
    92 1,0,0,0,
       
    93 // - SetActivePlugin(Output)::status
       
    94 //   - Variant name
       
    95 //     - Version 1.0
       
    96 //     - Semantic ID (LE)    
       
    97 //     - Variant name length (LE)
       
    98 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
    99 //     - Variant name
       
   100 10,
       
   101 12,0,0,0,
       
   102 6,0,0,0,
       
   103 26,
       
   104 's','t','a','t','u','s',
       
   105 // - RemovePlugin(Input)::status
       
   106 //   - Variant value
       
   107 //     - Version 1.0
       
   108 //     - Variant value type, EVariantTypeTInt32
       
   109 //     - Variant value length (LE)
       
   110 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
   111 //     - Variant value
       
   112 10,
       
   113 1,
       
   114 255,255,255,255
       
   115 };
       
   116 
       
   117 #endif // C_MT_HSPS_SETACTIVEPLUGIN_5_H