javamanager/javacaptain/tsrc/test_runner/src/rtcinterfacertc1test.cpp
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     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:  RtcInterfaceRtc1
       
    15 *
       
    16 */
       
    17 
       
    18 #include "TestHarness.h"
       
    19 
       
    20 #include <unistd.h>
       
    21 
       
    22 #include "testuids.h"
       
    23 
       
    24 #include "rtcinterfacehelpers.h"
       
    25 
       
    26 using namespace java::captain;
       
    27 
       
    28 TEST_GROUP(RtcInterfaceRtc1)
       
    29 {
       
    30     TEST_SETUP()
       
    31     {
       
    32     }
       
    33 
       
    34     TEST_TEARDOWN()
       
    35     {
       
    36     }
       
    37 };
       
    38 
       
    39 TEST(RtcInterfaceRtc1, RTCIS01_02LaunchBackgroundTerminateNormal1)
       
    40 {
       
    41     iLaunch(uid_normal1, syncOn, "test1", RTC_LAUNCH_TYPE_BACKGROUND_C);
       
    42     iTerminate(uid_normal1, syncOn);
       
    43 }
       
    44 
       
    45 TEST(RtcInterfaceRtc1, RTCIS01_03LaunchAutoInvocationTerminateNormal1)
       
    46 {
       
    47     iLaunch(uid_normal1, syncOn, "test1", RTC_LAUNCH_TYPE_AUTO_INVOCATION_C);
       
    48     iTerminate(uid_normal1, syncOn);
       
    49 }
       
    50 
       
    51 TEST(RtcInterfaceRtc1, RTCIS01_02LaunchPushTerminateNormal1)
       
    52 {
       
    53     iLaunch(uid_normal1, syncOn, "test1", RTC_LAUNCH_TYPE_PUSH_C);
       
    54     iTerminate(uid_normal1, syncOn);
       
    55 }
       
    56 
       
    57 TEST(RtcInterfaceRtc1, RTCIS01_01LaunchNormalTerminateNormal1)
       
    58 {
       
    59     iLaunch(uid_normal1, syncOn, "test1", RTC_LAUNCH_TYPE_NORMAL_C);
       
    60     iTerminate(uid_normal1, syncOn);
       
    61 }
       
    62