bluetoothapitest/bluetoothsvs/t_btgavdpapi/scripts/bt-gavdp-publishedpartner-active-master.script
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 //
       
     2 // Copyright (c) 2005-2009 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:
       
    15 //
       
    16 ///////////////////////////////////////////////////////////////////////////////
       
    17 //! @file
       
    18 //! @SYMTestSuiteName           T_BTGavdp
       
    19 //! @SYMScriptTestEnvironment   This test script requires a basic ROM with bluetooth dongle.
       
    20 //! @SYMScriptDescription
       
    21 //! @SYMAuthor                  Niandong Qiao, Jianhui Ren, Kevin Zeng
       
    22 //! @SYMCreationDate            05-06-2008
       
    23 ///////////////////////////////////////////////////////////////////////////////
       
    24 
       
    25 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\
       
    26 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\gavdp\
       
    27 
       
    28 LOAD_SUITE    UCCControlTE
       
    29 LOAD_SUITE    t_btgavdpapi    -SharedData
       
    30 DELAY    2000
       
    31 
       
    32 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncService
       
    33 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartTDService
       
    34 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini BuildRunGavdpPassiveSlave
       
    35 DELAY    5000
       
    36 
       
    37 // ****************************************************************************
       
    38 // Set up BT Addresses
       
    39 // ****************************************************************************
       
    40 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-SetBTAddresses
       
    41     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
    42     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
    43         SHARED_ACTIVE_SCHEDULER
       
    44         CREATE_OBJECT   CBluetoothSocket    bluetoothsocket1
       
    45         COMMAND         bluetoothsocket1    RSocketServerConnect
       
    46         COMMAND         bluetoothsocket1    NewL                 BT-GAVDP-PublishedPartner-Active-Master-SetBTAddresses-0001-NewL_Command02
       
    47         STORE           bluetoothsocket1
       
    48         STORE_ACTIVE_SCHEDULER
       
    49     END_TEST_BLOCK
       
    50     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
    51     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
    52     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
    53         SHARED_ACTIVE_SCHEDULER
       
    54         RESTORE_OBJECT  CBluetoothSocket    bluetoothsocket1
       
    55         CREATE_OBJECT   TBTDevAddr          addrremote
       
    56         COMMAND         addrremote          Construct
       
    57         COMMAND         addrremote          OpenHostResolver     BT-GAVDP-PublishedPartner-Active-Master-SetBTAddresses-0002-OpenHostResolver_Command02
       
    58         COMMAND         addrremote          SetHostNameL         BT-GAVDP-PublishedPartner-Active-Master-SetBTAddresses-0002-SetHostNameL_Command03
       
    59         COMMAND         addrremote          GetDeviceAddress     BT-GAVDP-PublishedPartner-Active-Master-SetBTAddresses-0002-GetDeviceAddress_Command04
       
    60         OUTSTANDING
       
    61         STORE           addrremote
       
    62         STORE_ACTIVE_SCHEDULER
       
    63     END_TEST_BLOCK
       
    64     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
    65 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-SetBTAddresses
       
    66 DELAY    5000
       
    67 
       
    68 // ****************************************************************************
       
    69 // RGavdp Tests
       
    70 // ****************************************************************************
       
    71 
       
    72 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0001
       
    73 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0001
       
    74 //! @SYMAPI                     RGavdp::RGavdp();
       
    75 //!                             RGavdp::Open(MGavdpUser {ref}, RSocketServ {ref});
       
    76 //!                             RGavdp::Close()
       
    77 //! @SYMAuthor                  Niandong Qiao
       
    78 //! @SYMCreationDate            05-06-2008
       
    79 //! @SYMTestCaseDesc            Create a RGavdp object by default constructor and then open and close it.
       
    80 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
    81 //!                             2. Open a GAVDP session.
       
    82 //!                             3. Closes the GAVDP session.
       
    83 //! @SYMTestStatus              Implemented
       
    84 //! @SYMTestPriority            High
       
    85 //! @SYMTestExpectedResults     1. RGavdp object was created without causing panic.
       
    86 //!                             2. Method RGavdp::Open() return KErrNone.
       
    87 //!                             3. Method RGavdp::Close() called without causing panic.
       
    88 //! @SYMTestType                CIT
       
    89     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
    90     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
    91         SHARED_ACTIVE_SCHEDULER
       
    92         CREATE_OBJECT   RSocketServ         socketserv
       
    93         CREATE_OBJECT   RGavdp              gavdp
       
    94         
       
    95         COMMAND         socketserv          RSocketServ
       
    96         COMMAND         socketserv          Connect
       
    97         COMMAND         gavdp               new
       
    98         COMMAND         gavdp               Open                BT-GAVDP-PublishedPartner-Active-Master-0001-0001-Open_Command04
       
    99         
       
   100         COMMAND         gavdp               Close
       
   101         COMMAND         socketserv          Close
       
   102         STORE_ACTIVE_SCHEDULER
       
   103     END_TEST_BLOCK
       
   104     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   105 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0001
       
   106 
       
   107 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0002
       
   108 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0002
       
   109 //! @SYMAPI                     RGavdp::RegisterSEP(TAvdtpSEPInfo {ref});
       
   110 //!                             RGavdp::BeginConfiguringLocalSEP(TSEID);
       
   111 //!                             RGavdp::AddSEPCapability(const TAvdtpServiceCapability {ref});
       
   112 //!                             RGavdp::CommitSEPConfiguration();
       
   113 //!                             MGavdpUser::GAVDP_ConfigurationConfirm()
       
   114 //! @SYMAuthor                  Niandong Qiao
       
   115 //! @SYMCreationDate            05-06-2008
       
   116 //! @SYMTestCaseDesc            Configure a local SEP.
       
   117 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   118 //!                             2. Open a GAVDP session.
       
   119 //!                             3. Register SEP (source & audio)
       
   120 //!                             4. Begin configuration of this SEP
       
   121 //!                             5. Add local SEP capabilities:
       
   122 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   123 //!                               5.2. TAvdtpReportingCapabilities
       
   124 //!                               5.3. TAvdtpRecoveryCapabilities
       
   125 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   126 //!                               5.5. TNonSBCCodecCapabilities
       
   127 //!                             6. Commit the local SEP configuration
       
   128 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   129 //!                             8. Closes the GAVDP session.
       
   130 //! @SYMTestStatus              Implemented
       
   131 //! @SYMTestPriority            High
       
   132 //! @SYMTestExpectedResults     1. Method RGavdp::RegisterSEP() return KErrNone.
       
   133 //!                             2. Method RGavdp::BeginConfiguringLocalSEP() return KErrNone.
       
   134 //!                             3. Method RGavdp::AddSEPCapability() return KErrNone.
       
   135 //!                             4. Method RGavdp::CommitSEPConfiguration() called without causing panic.
       
   136 //!                             5. The callback function MGavdpUser::GAVDP_ConfigurationConfirm() is called when locally-initiated configuration procedure successfully completes.
       
   137 //! @SYMTestType                CIT
       
   138     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   139     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   140         SHARED_ACTIVE_SCHEDULER
       
   141         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   142         CREATE_OBJECT   RSocketServ         socketserv
       
   143         CREATE_OBJECT   RGavdp              gavdp
       
   144         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   145         CREATE_OBJECT   TSEID                                 localseid
       
   146         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   147         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   148         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   149         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   150         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   151         
       
   152         COMMAND         socketserv          RSocketServ
       
   153         COMMAND         socketserv          Connect
       
   154         COMMAND         gavdp               new
       
   155         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0002-0001-Open_Command04
       
   156         
       
   157         COMMAND         localsepinfo1       new
       
   158         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SetIsSink_Command06
       
   159         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SetMediaType_Command07
       
   160         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0002-0001-RegisterSEP_Command08
       
   161         COMMAND         localseid           new
       
   162         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SEID_Command10
       
   163         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0002-0001-BeginConfiguringLocalSEP_Command11
       
   164         COMMAND         captransport1       new
       
   165         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0002-0001-AddSEPCapability_Command13
       
   166         COMMAND         capreport1          new
       
   167         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0002-0001-AddSEPCapability_Command15
       
   168         COMMAND         caprecovery1        new
       
   169         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SetRecoveryType_Command17
       
   170         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SetMaxWindowSize_Command18
       
   171         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SetMinWindowSize_Command19
       
   172         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0002-0001-AddSEPCapability_Command20
       
   173         COMMAND         capprotect1         new
       
   174         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SetContentProtectionType_Command22
       
   175         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0002-0001-SetContentProtectionData_Command23
       
   176         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0002-0001-AddSEPCapability_Command24
       
   177         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0002-0001-new_Command25
       
   178         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0002-0001-AddSEPCapability_Command26
       
   179         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0002-0001-CommitSEPConfiguration_Command27
       
   180         OUTSTANDING
       
   181         
       
   182         COMMAND         gavdp               Close
       
   183         COMMAND         socketserv          Close
       
   184         STORE           addrremote
       
   185         STORE_ACTIVE_SCHEDULER
       
   186     END_TEST_BLOCK
       
   187     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   188 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0002
       
   189 
       
   190 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0003
       
   191 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0003
       
   192 //! @SYMAPI                     RGavdp::Connect(const TBTDevAddr {ref});
       
   193 //!                             MGavdpUser::GAVDP_ConnectConfirm(const TBTDevAddr {ref});
       
   194 //!                             RGavdp::Shutdown()
       
   195 //! @SYMAuthor                  Niandong Qiao
       
   196 //! @SYMCreationDate            05-06-2008
       
   197 //! @SYMTestCaseDesc            Connect to a remote device.
       
   198 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   199 //!                             2. Open a GAVDP session.
       
   200 //!                             3. Register SEP (source & audio)
       
   201 //!                             4. Begin configuration of this SEP
       
   202 //!                             5. Add local SEP capabilities:
       
   203 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   204 //!                               5.2. TAvdtpReportingCapabilities
       
   205 //!                               5.3. TAvdtpRecoveryCapabilities
       
   206 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   207 //!                               5.5. TNonSBCCodecCapabilities
       
   208 //!                             6. Commit the local SEP configuration
       
   209 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   210 //!                             8. Connect to a remote device.
       
   211 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
   212 //!                             10. Shutdown the GAVDP.
       
   213 //!                             11. Closes the GAVDP session.
       
   214 //! @SYMTestStatus              Implemented
       
   215 //! @SYMTestPriority            High
       
   216 //! @SYMTestExpectedResults     1. Method Connect() return KErrNone.
       
   217 //!                             2. The call back function MGavdpUser::GAVDP_ConnectConfirm() is called  when a signalling channel has successfully been created.
       
   218 //!                             3. Method Shutdown()return KErrNone.
       
   219 //! @SYMTestType                CIT
       
   220     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   221     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   222         SHARED_ACTIVE_SCHEDULER
       
   223         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   224         CREATE_OBJECT   RSocketServ         socketserv
       
   225         CREATE_OBJECT   RGavdp              gavdp
       
   226         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   227         CREATE_OBJECT   TSEID                                 localseid
       
   228         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   229         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   230         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   231         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   232         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   233         
       
   234         COMMAND         socketserv          RSocketServ
       
   235         COMMAND         socketserv          Connect
       
   236         COMMAND         gavdp               new
       
   237         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0003-0001-Open_Command04
       
   238         
       
   239         COMMAND         localsepinfo1       new
       
   240         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SetIsSink_Command06
       
   241         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SetMediaType_Command07
       
   242         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0003-0001-RegisterSEP_Command08
       
   243         COMMAND         localseid           new
       
   244         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SEID_Command10
       
   245         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0003-0001-BeginConfiguringLocalSEP_Command11
       
   246         COMMAND         captransport1       new
       
   247         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0003-0001-AddSEPCapability_Command13
       
   248         COMMAND         capreport1          new
       
   249         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0003-0001-AddSEPCapability_Command15
       
   250         COMMAND         caprecovery1        new
       
   251         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SetRecoveryType_Command17
       
   252         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SetMaxWindowSize_Command18
       
   253         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SetMinWindowSize_Command19
       
   254         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0003-0001-AddSEPCapability_Command20
       
   255         COMMAND         capprotect1         new
       
   256         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SetContentProtectionType_Command22
       
   257         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0003-0001-SetContentProtectionData_Command23
       
   258         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0003-0001-AddSEPCapability_Command24
       
   259         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0003-0001-new_Command25
       
   260         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0003-0001-AddSEPCapability_Command26
       
   261         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0003-0001-CommitSEPConfiguration_Command27
       
   262         OUTSTANDING
       
   263         
       
   264         DELAY           5000000
       
   265         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0003-0001-Connect_Command29
       
   266         OUTSTANDING
       
   267         
       
   268         COMMAND         gavdp               Shutdown
       
   269         
       
   270         COMMAND         gavdp               Close
       
   271         COMMAND         socketserv          Close
       
   272         STORE           addrremote
       
   273         STORE_ACTIVE_SCHEDULER
       
   274     END_TEST_BLOCK
       
   275     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   276 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0003
       
   277 
       
   278 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0004
       
   279 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0004
       
   280 //! @SYMAPI                     RGavdp::DiscoverRemoteSEPs();
       
   281 //!                             MGavdpUser::GAVDP_SEPDiscovered(const TAvdtpSEPInfo {ref});
       
   282 //!                             MGavdpUser::GAVDP_SEPDiscoveryComplete()
       
   283 //! @SYMAuthor                  Niandong Qiao
       
   284 //! @SYMCreationDate            05-06-2008
       
   285 //! @SYMTestCaseDesc            Discover remote SEPs on peer device.
       
   286 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   287 //!                             2. Open a GAVDP session.
       
   288 //!                             3. Register SEP (source & audio)
       
   289 //!                             4. Begin configuration of this SEP
       
   290 //!                             5. Add local SEP capabilities:
       
   291 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   292 //!                               5.2. TAvdtpReportingCapabilities
       
   293 //!                               5.3. TAvdtpRecoveryCapabilities
       
   294 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   295 //!                               5.5. TNonSBCCodecCapabilities
       
   296 //!                             6. Commit the local SEP configuration
       
   297 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   298 //!                             8. Connect to a remote device.
       
   299 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
   300 //!                             10. Discover SEPs of remote device.
       
   301 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
   302 //!                             12. Closes the GAVDP session.
       
   303 //! @SYMTestStatus              Implemented
       
   304 //! @SYMTestPriority            High
       
   305 //! @SYMTestExpectedResults     1. Method DiscoverRemoteSEPs() return KErrNone.
       
   306 //!                             2. The call back function MGavdpUser::GAVDP_SEPDiscovered() is called when a remote SEP has been discovered .
       
   307 //!                             3. The call back function MGavdpUser::GAVDP_SEPDiscoveryComplete() is called when no more SEPs have been discovered on the remote device.
       
   308 //!                             4. Number of discovered SEPs is as expected.
       
   309 //! @SYMTestType                CIT
       
   310     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   311     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   312         SHARED_ACTIVE_SCHEDULER
       
   313         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   314         CREATE_OBJECT   RSocketServ         socketserv
       
   315         CREATE_OBJECT   RGavdp              gavdp
       
   316         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   317         CREATE_OBJECT   TSEID                                 localseid
       
   318         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   319         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   320         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   321         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   322         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   323         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
   324         
       
   325         COMMAND         socketserv          RSocketServ
       
   326         COMMAND         socketserv          Connect
       
   327         COMMAND         gavdp               new
       
   328         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0004-0001-Open_Command04
       
   329         
       
   330         COMMAND         localsepinfo1       new
       
   331         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SetIsSink_Command06
       
   332         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SetMediaType_Command07
       
   333         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0004-0001-RegisterSEP_Command08
       
   334         COMMAND         localseid           new
       
   335         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SEID_Command10
       
   336         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0004-0001-BeginConfiguringLocalSEP_Command11
       
   337         COMMAND         captransport1       new
       
   338         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0004-0001-AddSEPCapability_Command13
       
   339         COMMAND         capreport1          new
       
   340         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0004-0001-AddSEPCapability_Command15
       
   341         COMMAND         caprecovery1        new
       
   342         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SetRecoveryType_Command17
       
   343         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SetMaxWindowSize_Command18
       
   344         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SetMinWindowSize_Command19
       
   345         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0004-0001-AddSEPCapability_Command20
       
   346         COMMAND         capprotect1         new
       
   347         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SetContentProtectionType_Command22
       
   348         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0004-0001-SetContentProtectionData_Command23
       
   349         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0004-0001-AddSEPCapability_Command24
       
   350         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0004-0001-new_Command25
       
   351         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0004-0001-AddSEPCapability_Command26
       
   352         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0004-0001-CommitSEPConfiguration_Command27
       
   353         OUTSTANDING
       
   354         
       
   355         DELAY           5000000
       
   356         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0004-0001-Connect_Command29
       
   357         OUTSTANDING
       
   358         
       
   359         COMMAND         remotesepinfo1      new
       
   360         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0004-0001-DiscoverRemoteSEPs_Command32
       
   361         OUTSTANDING
       
   362         
       
   363         COMMAND         gavdp               Close
       
   364         COMMAND         socketserv          Close
       
   365         STORE           addrremote
       
   366         STORE_ACTIVE_SCHEDULER
       
   367     END_TEST_BLOCK
       
   368     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   369 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0004
       
   370 
       
   371 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0005
       
   372 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0005
       
   373 //! @SYMAPI                     RGavdp:: GetRemoteSEPCapabilities(TSEID, const TAvdtpServiceCategories {ref});
       
   374 //!                             MGavdpUser::GAVDP_SEPCapability(TAvdtpServiceCapability {ptr});
       
   375 //!                             MGavdpUser::GAVDP_SEPCapabilityComplete()
       
   376 //! @SYMAuthor                  Niandong Qiao
       
   377 //! @SYMCreationDate            05-06-2008
       
   378 //! @SYMTestCaseDesc            Get all capabilities of a remote SEP.
       
   379 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   380 //!                             2. Open a GAVDP session.
       
   381 //!                             3. Register SEP (source & audio)
       
   382 //!                             4. Begin configuration of this SEP
       
   383 //!                             5. Add local SEP capabilities:
       
   384 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   385 //!                               5.2. TAvdtpReportingCapabilities
       
   386 //!                               5.3. TAvdtpRecoveryCapabilities
       
   387 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   388 //!                               5.5. TNonSBCCodecCapabilities
       
   389 //!                             6. Commit the local SEP configuration
       
   390 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   391 //!                             8. Connect to a remote device.
       
   392 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
   393 //!                             10. Discover SEPs of remote device.
       
   394 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
   395 //!                             12. Get all capabilities of a remote SEP.
       
   396 //!                             13. Wait for call back to GAVDP_SEPCapability() and MGavdpUser::GAVDP_SEPCapabilityComplete()
       
   397 //!                             14. Closes the GAVDP session.
       
   398 //! @SYMTestStatus              Implemented
       
   399 //! @SYMTestPriority            High
       
   400 //! @SYMTestExpectedResults     1. Method MGavdpUser::GetRemoteSEPCapabilities() return KErrNone.
       
   401 //!                             2. The call back function MGavdpUser::GAVDP_SEPCapability() is called when a capability from a remote SEP has been retrieved.
       
   402 //!                             3. The call back function MGavdpUser::GAVDP_SEPCapabilityComplete() is called when remote SEP has no more capabilities to be discovered.
       
   403 //!                             4. Received capabilities is same as capabilities of remote SEP.
       
   404 //! @SYMTestType                CIT
       
   405     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   406     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   407         SHARED_ACTIVE_SCHEDULER
       
   408         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   409         CREATE_OBJECT   RSocketServ         socketserv
       
   410         CREATE_OBJECT   RGavdp              gavdp
       
   411         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   412         CREATE_OBJECT   TSEID                                 localseid
       
   413         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   414         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   415         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   416         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   417         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   418         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
   419         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport2
       
   420         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport2
       
   421         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery2
       
   422         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect2
       
   423         
       
   424         COMMAND         socketserv          RSocketServ
       
   425         COMMAND         socketserv          Connect
       
   426         COMMAND         gavdp               new
       
   427         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0005-0001-Open_Command04
       
   428         
       
   429         COMMAND         localsepinfo1       new
       
   430         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetIsSink_Command06
       
   431         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetMediaType_Command07
       
   432         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0005-0001-RegisterSEP_Command08
       
   433         COMMAND         localseid           new
       
   434         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SEID_Command10
       
   435         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0005-0001-BeginConfiguringLocalSEP_Command11
       
   436         COMMAND         captransport1       new
       
   437         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-AddSEPCapability_Command13
       
   438         COMMAND         capreport1          new
       
   439         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-AddSEPCapability_Command15
       
   440         COMMAND         caprecovery1        new
       
   441         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetRecoveryType_Command17
       
   442         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetMaxWindowSize_Command18
       
   443         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetMinWindowSize_Command19
       
   444         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-AddSEPCapability_Command20
       
   445         COMMAND         capprotect1         new
       
   446         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetContentProtectionType_Command22
       
   447         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetContentProtectionData_Command23
       
   448         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-AddSEPCapability_Command24
       
   449         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0005-0001-new_Command25
       
   450         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-AddSEPCapability_Command26
       
   451         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0005-0001-CommitSEPConfiguration_Command27
       
   452         OUTSTANDING
       
   453         
       
   454         DELAY           5000000
       
   455         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0005-0001-Connect_Command29
       
   456         OUTSTANDING
       
   457         
       
   458         COMMAND         remotesepinfo1      new
       
   459         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0005-0001-DiscoverRemoteSEPs_Command32
       
   460         OUTSTANDING
       
   461         
       
   462         COMMAND         captransport2       new
       
   463         COMMAND         capreport2          new
       
   464         COMMAND         caprecovery2        new
       
   465         COMMAND         caprecovery2        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetRecoveryType_Command37
       
   466         COMMAND         caprecovery2        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetMaxWindowSize_Command38
       
   467         COMMAND         caprecovery2        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetMinWindowSize_Command39
       
   468         COMMAND         capprotect2         new
       
   469         COMMAND         capprotect2         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetContentProtectionType_Command41
       
   470         COMMAND         capprotect2         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0005-0001-SetContentProtectionData_Command42
       
   471         COMMAND         gavdp               GetRemoteSEPCapabilities    BT-GAVDP-PublishedPartner-Active-Master-0005-0001-GetRemoteSEPCapabilities_Command43
       
   472         OUTSTANDING
       
   473         
       
   474         COMMAND         gavdp               Close
       
   475         COMMAND         socketserv          Close
       
   476         STORE           addrremote
       
   477         STORE_ACTIVE_SCHEDULER
       
   478     END_TEST_BLOCK
       
   479     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   480 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0005
       
   481 
       
   482 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0006
       
   483 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0006
       
   484 //! @SYMAPI                     RGavdp::BeginConfiguringRemoteSEP(TSEID, TSEID);
       
   485 //!                             RGavdp::AddSEPCapability(const TAvdtpServiceCapability {ref});
       
   486 //!                             RGavdp::CommitSEPConfiguration();
       
   487 //!                             MGavdpUser::GAVDP_ConfigurationConfirm()
       
   488 //! @SYMAuthor                  Niandong Qiao
       
   489 //! @SYMCreationDate            05-06-2008
       
   490 //! @SYMTestCaseDesc            Configure remote SEP.
       
   491 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   492 //!                             2. Open a GAVDP session.
       
   493 //!                             3. Register SEP (source & audio)
       
   494 //!                             4. Begin configuration of this SEP
       
   495 //!                             5. Add local SEP capabilities:
       
   496 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   497 //!                               5.2. TAvdtpReportingCapabilities
       
   498 //!                               5.3. TAvdtpRecoveryCapabilities
       
   499 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   500 //!                               5.5. TNonSBCCodecCapabilities
       
   501 //!                             6. Commit the local SEP configuration
       
   502 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   503 //!                             8. Connect to a remote device.
       
   504 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
   505 //!                             10. Discover SEPs of remote device.
       
   506 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
   507 //!                             12. Begin configuration of a remote SEP
       
   508 //!                             13. Add SEP capabilities:
       
   509 //!                               13.1. TAvdtpMediaTransportCapabilities
       
   510 //!                               13.2. TAvdtpReportingCapabilities
       
   511 //!                               13.3. TAvdtpRecoveryCapabilities
       
   512 //!                               13.4. TAvdtpContentProtectionCapabilities
       
   513 //!                             14. Commit the remote SEP configuration
       
   514 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   515 //!                             16. Closes the GAVDP session.
       
   516 //! @SYMTestStatus              Implemented
       
   517 //! @SYMTestPriority            High
       
   518 //! @SYMTestExpectedResults     1. Method BeginConfiguringRemoteSEP() return KErrNone.
       
   519 //!                             2. Method AddSEPCapability() return KErrNone.
       
   520 //!                             3. Method CommitSEPConfiguration() called without causing panic.
       
   521 //!                             4. The callback function MGavdpUser::GAVDP_ConfigurationConfirm() is called when locally-initiated configuration procedure successfully completes.
       
   522 //! @SYMTestType                CIT
       
   523     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   524     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   525         SHARED_ACTIVE_SCHEDULER
       
   526         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   527         CREATE_OBJECT   RSocketServ         socketserv
       
   528         CREATE_OBJECT   RGavdp              gavdp
       
   529         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   530         CREATE_OBJECT   TSEID                                 localseid
       
   531         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   532         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   533         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   534         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   535         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   536         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
   537         CREATE_OBJECT   TSEID                                 remoteseid
       
   538         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
   539         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
   540         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
   541         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
   542         
       
   543         COMMAND         socketserv          RSocketServ
       
   544         COMMAND         socketserv          Connect
       
   545         COMMAND         gavdp               new
       
   546         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0006-0001-Open_Command04
       
   547         
       
   548         COMMAND         localsepinfo1       new
       
   549         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetIsSink_Command06
       
   550         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetMediaType_Command07
       
   551         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0006-0001-RegisterSEP_Command08
       
   552         COMMAND         localseid           new
       
   553         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SEID_Command10
       
   554         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0006-0001-BeginConfiguringLocalSEP_Command11
       
   555         COMMAND         captransport1       new
       
   556         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command13
       
   557         COMMAND         capreport1          new
       
   558         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command15
       
   559         COMMAND         caprecovery1        new
       
   560         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetRecoveryType_Command17
       
   561         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetMaxWindowSize_Command18
       
   562         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetMinWindowSize_Command19
       
   563         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command20
       
   564         COMMAND         capprotect1         new
       
   565         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetContentProtectionType_Command22
       
   566         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetContentProtectionData_Command23
       
   567         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command24
       
   568         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0006-0001-new_Command25
       
   569         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command26
       
   570         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0006-0001-CommitSEPConfiguration_Command27
       
   571         OUTSTANDING
       
   572         
       
   573         DELAY           5000000
       
   574         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0006-0001-Connect_Command29
       
   575         OUTSTANDING
       
   576         
       
   577         COMMAND         remotesepinfo1      new
       
   578         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0006-0001-DiscoverRemoteSEPs_Command32
       
   579         OUTSTANDING
       
   580         
       
   581         COMMAND         remoteseid          new
       
   582         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SEID_Command35
       
   583         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0006-0001-BeginConfiguringRemoteSEP_Command36
       
   584         COMMAND         captransport3       new
       
   585         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command38
       
   586         COMMAND         capreport3          new
       
   587         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command40
       
   588         COMMAND         caprecovery3        new
       
   589         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetRecoveryType_Command42
       
   590         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetMaxWindowSize_Command43
       
   591         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetMinWindowSize_Command44
       
   592         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command45   
       
   593         COMMAND         capprotect3         new
       
   594         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetContentProtectionType_Command47
       
   595         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0006-0001-SetContentProtectionData_Command48
       
   596         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0006-0001-AddSEPCapability_Command49
       
   597         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0006-0001-CommitSEPConfiguration_Command52
       
   598         OUTSTANDING
       
   599         
       
   600         COMMAND         gavdp               Close
       
   601         COMMAND         socketserv          Close
       
   602         STORE           addrremote
       
   603         STORE_ACTIVE_SCHEDULER
       
   604     END_TEST_BLOCK
       
   605     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   606 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0006
       
   607 
       
   608 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0007
       
   609 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0007
       
   610 //! @SYMAPI                     RGavdp::CreateBearerSockets(TSEID);
       
   611 //!                             MGavdpUser::GAVDP_BearerReady(RSocket, const TAvdtpSockAddr {ref})
       
   612 //! @SYMAuthor                  Niandong Qiao
       
   613 //! @SYMCreationDate            05-06-2008
       
   614 //! @SYMTestCaseDesc            Create bearers.
       
   615 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   616 //!                             2. Open a GAVDP session.
       
   617 //!                             3. Register SEP (source & audio)
       
   618 //!                             4. Begin configuration of this SEP
       
   619 //!                             5. Add local SEP capabilities:
       
   620 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   621 //!                               5.2. TAvdtpReportingCapabilities
       
   622 //!                               5.3. TAvdtpRecoveryCapabilities
       
   623 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   624 //!                               5.5. TNonSBCCodecCapabilities
       
   625 //!                             6. Commit the local SEP configuration
       
   626 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   627 //!                             8. Connect to a remote device.
       
   628 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
   629 //!                             10. Discover SEPs of remote device.
       
   630 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
   631 //!                             12. Begin configuration of a remote SEP
       
   632 //!                             13. Add SEP capabilities:
       
   633 //!                               13.1. TAvdtpMediaTransportCapabilities
       
   634 //!                               13.2. TAvdtpReportingCapabilities
       
   635 //!                               13.3. TAvdtpRecoveryCapabilities
       
   636 //!                               13.4. TAvdtpContentProtectionCapabilities
       
   637 //!                             14. Commit the remote SEP configuration
       
   638 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   639 //!                             16. Create bearers
       
   640 //!                             17. Abort stream
       
   641 //!                             18. Wait for call back to MGavdpUser::GAVDP_AbortStreamConfirm()
       
   642 //!                             19. Close bearers
       
   643 //!                             20. Closes the GAVDP session.
       
   644 //! @SYMTestStatus              Implemented
       
   645 //! @SYMTestPriority            High
       
   646 //! @SYMTestExpectedResults     1. Method CreateBearerSockets() return KErrNone.
       
   647 //!                             2. The call back function GAVDP_BearerReady() is called when a bearer has been created for a session in the stream.
       
   648 //! @SYMTestType                CIT
       
   649     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   650     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   651         SHARED_ACTIVE_SCHEDULER
       
   652         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   653         CREATE_OBJECT   RSocketServ         socketserv
       
   654         CREATE_OBJECT   RGavdp              gavdp
       
   655         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   656         CREATE_OBJECT   TSEID                                 localseid
       
   657         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   658         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   659         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   660         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   661         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   662         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
   663         CREATE_OBJECT   TSEID                                 remoteseid
       
   664         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
   665         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
   666         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
   667         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
   668         
       
   669         COMMAND         socketserv          RSocketServ
       
   670         COMMAND         socketserv          Connect
       
   671         COMMAND         gavdp               new
       
   672         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0007-0001-Open_Command04
       
   673         
       
   674         COMMAND         localsepinfo1       new
       
   675         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetIsSink_Command06
       
   676         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetMediaType_Command07
       
   677         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0007-0001-RegisterSEP_Command08
       
   678         COMMAND         localseid           new
       
   679         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SEID_Command10
       
   680         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0007-0001-BeginConfiguringLocalSEP_Command11
       
   681         COMMAND         captransport1       new
       
   682         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command13
       
   683         COMMAND         capreport1          new
       
   684         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command15
       
   685         COMMAND         caprecovery1        new
       
   686         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetRecoveryType_Command17
       
   687         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetMaxWindowSize_Command18
       
   688         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetMinWindowSize_Command19
       
   689         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command20
       
   690         COMMAND         capprotect1         new
       
   691         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetContentProtectionType_Command22
       
   692         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetContentProtectionData_Command23
       
   693         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command24
       
   694         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0007-0001-new_Command25
       
   695         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command26
       
   696         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0007-0001-CommitSEPConfiguration_Command27
       
   697         OUTSTANDING
       
   698         
       
   699         DELAY           5000000
       
   700         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0007-0001-Connect_Command29
       
   701         OUTSTANDING
       
   702         
       
   703         COMMAND         remotesepinfo1      new
       
   704         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0007-0001-DiscoverRemoteSEPs_Command32
       
   705         OUTSTANDING
       
   706         
       
   707         COMMAND         remoteseid          new
       
   708         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SEID_Command35
       
   709         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0007-0001-BeginConfiguringRemoteSEP_Command36
       
   710         COMMAND         captransport3       new
       
   711         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command38
       
   712         COMMAND         capreport3          new
       
   713         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command40
       
   714         COMMAND         caprecovery3        new
       
   715         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetRecoveryType_Command42
       
   716         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetMaxWindowSize_Command43
       
   717         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetMinWindowSize_Command44
       
   718         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command45   
       
   719         COMMAND         capprotect3         new
       
   720         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetContentProtectionType_Command47
       
   721         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0007-0001-SetContentProtectionData_Command48
       
   722         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AddSEPCapability_Command49
       
   723         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0007-0001-CommitSEPConfiguration_Command52
       
   724         OUTSTANDING
       
   725         
       
   726         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0007-0001-CreateBearerSockets_Command54
       
   727         OUTSTANDING
       
   728         
       
   729         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0007-0001-AbortStream_Command56
       
   730         OUTSTANDING
       
   731         DELAY           5000000
       
   732         
       
   733         COMMAND         gavdp               CloseBearerSockets
       
   734         
       
   735         COMMAND         gavdp               Close
       
   736         COMMAND         socketserv          Close
       
   737         STORE           addrremote
       
   738         STORE_ACTIVE_SCHEDULER
       
   739     END_TEST_BLOCK
       
   740     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   741 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0007
       
   742 
       
   743 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0008
       
   744 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0008
       
   745 //! @SYMAPI                     RGavdp::StartStream(TSEID);
       
   746 //!                             MGavdpUser::GAVDP_StartStreamsConfirm();
       
   747 //!                             RGavdp::AbortStream(TSEID);
       
   748 //!                             MGavdpUser::GAVDP_AbortStreamConfirm()
       
   749 //! @SYMAuthor                  Niandong Qiao
       
   750 //! @SYMCreationDate            05-06-2008
       
   751 //! @SYMTestCaseDesc            Start stream and then abort stream.
       
   752 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   753 //!                             2. Open a GAVDP session.
       
   754 //!                             3. Register SEP (source & audio)
       
   755 //!                             4. Begin configuration of this SEP
       
   756 //!                             5. Add local SEP capabilities:
       
   757 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   758 //!                               5.2. TAvdtpReportingCapabilities
       
   759 //!                               5.3. TAvdtpRecoveryCapabilities
       
   760 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   761 //!                               5.5. TNonSBCCodecCapabilities
       
   762 //!                             6. Commit the local SEP configuration
       
   763 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   764 //!                             8. Connect to a remote device.
       
   765 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
   766 //!                             10. Discover SEPs of remote device.
       
   767 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
   768 //!                             12. Begin configuration of a remote SEP
       
   769 //!                             13. Add SEP capabilities:
       
   770 //!                               13.1. TAvdtpMediaTransportCapabilities
       
   771 //!                               13.2. TAvdtpReportingCapabilities
       
   772 //!                               13.3. TAvdtpRecoveryCapabilities
       
   773 //!                               13.4. TAvdtpContentProtectionCapabilities
       
   774 //!                             14. Commit the remote SEP configuration
       
   775 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   776 //!                             16. Create bearers
       
   777 //!                             17. Start stream
       
   778 //!                             18. Wait for call back to MGavdpUser::GAVDP_StartStreamsConfirm()
       
   779 //!                             19. Abort stream
       
   780 //!                             20. Wait for call back to MGavdpUser::GAVDP_ MGavdpUser::GAVDP_AbortStreamConfirm()
       
   781 //!                             21. Close bearers
       
   782 //!                             22. Closes the GAVDP session.
       
   783 //! @SYMTestStatus              Implemented
       
   784 //! @SYMTestPriority            High
       
   785 //! @SYMTestExpectedResults     1. Method StartStream() called without causing panic.
       
   786 //!                             2. The call back function GAVDP_StartStreamsConfirm() is called when the locally-initiated Start stream has successfully completed.
       
   787 //!                             3. Method AbortStream() called without causing panic.
       
   788 //!                             4. The call back function GAVDP_AbortStreamConfirm() is called when the locally-initiated Abort stream has successfully completed.
       
   789 //! @SYMTestType                CIT
       
   790     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   791     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   792         SHARED_ACTIVE_SCHEDULER
       
   793         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   794         CREATE_OBJECT   RSocketServ         socketserv
       
   795         CREATE_OBJECT   RGavdp              gavdp
       
   796         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   797         CREATE_OBJECT   TSEID                                 localseid
       
   798         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   799         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   800         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   801         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   802         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   803         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
   804         CREATE_OBJECT   TSEID                                 remoteseid
       
   805         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
   806         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
   807         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
   808         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
   809         
       
   810         COMMAND         socketserv          RSocketServ
       
   811         COMMAND         socketserv          Connect
       
   812         COMMAND         gavdp               new
       
   813         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0008-0001-Open_Command04
       
   814         
       
   815         COMMAND         localsepinfo1       new
       
   816         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetIsSink_Command06
       
   817         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetMediaType_Command07
       
   818         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0008-0001-RegisterSEP_Command08
       
   819         COMMAND         localseid           new
       
   820         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SEID_Command10
       
   821         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0008-0001-BeginConfiguringLocalSEP_Command11
       
   822         COMMAND         captransport1       new
       
   823         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command13
       
   824         COMMAND         capreport1          new
       
   825         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command15
       
   826         COMMAND         caprecovery1        new
       
   827         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetRecoveryType_Command17
       
   828         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetMaxWindowSize_Command18
       
   829         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetMinWindowSize_Command19
       
   830         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command20
       
   831         COMMAND         capprotect1         new
       
   832         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetContentProtectionType_Command22
       
   833         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetContentProtectionData_Command23
       
   834         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command24
       
   835         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0008-0001-new_Command25
       
   836         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command26
       
   837         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0008-0001-CommitSEPConfiguration_Command27
       
   838         OUTSTANDING
       
   839         
       
   840         DELAY           5000000
       
   841         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0008-0001-Connect_Command29
       
   842         OUTSTANDING
       
   843         
       
   844         COMMAND         remotesepinfo1      new
       
   845         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0008-0001-DiscoverRemoteSEPs_Command32
       
   846         OUTSTANDING
       
   847         
       
   848         COMMAND         remoteseid          new
       
   849         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SEID_Command35
       
   850         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0008-0001-BeginConfiguringRemoteSEP_Command36
       
   851         COMMAND         captransport3       new
       
   852         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command38
       
   853         COMMAND         capreport3          new
       
   854         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command40
       
   855         COMMAND         caprecovery3        new
       
   856         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetRecoveryType_Command42
       
   857         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetMaxWindowSize_Command43
       
   858         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetMinWindowSize_Command44
       
   859         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command45   
       
   860         COMMAND         capprotect3         new
       
   861         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetContentProtectionType_Command47
       
   862         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0008-0001-SetContentProtectionData_Command48
       
   863         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AddSEPCapability_Command49
       
   864         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0008-0001-CommitSEPConfiguration_Command52
       
   865         OUTSTANDING
       
   866         
       
   867         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0008-0001-CreateBearerSockets_Command54
       
   868         OUTSTANDING
       
   869         
       
   870         COMMAND         gavdp               StartStream                 BT-GAVDP-PublishedPartner-Active-Master-0008-0001-StartStream_Command56
       
   871         OUTSTANDING
       
   872         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0008-0001-AbortStream_Command58
       
   873         OUTSTANDING
       
   874         
       
   875         COMMAND         gavdp               CloseBearerSockets
       
   876         
       
   877         COMMAND         gavdp               Close
       
   878         COMMAND         socketserv          Close
       
   879         STORE           addrremote
       
   880         STORE_ACTIVE_SCHEDULER
       
   881     END_TEST_BLOCK
       
   882     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
   883 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0008
       
   884 
       
   885 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0009
       
   886 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0009
       
   887 //! @SYMAPI                     RGavdp::CreateBearerSockets(TSEID, TBool, TBool)
       
   888 //! @SYMAuthor                  Niandong Qiao
       
   889 //! @SYMCreationDate            05-06-2008
       
   890 //! @SYMTestCaseDesc            Send data through created socket.
       
   891 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
   892 //!                             2. Open a GAVDP session.
       
   893 //!                             3. Register SEP (source & audio)
       
   894 //!                             4. Begin configuration of this SEP
       
   895 //!                             5. Add local SEP capabilities:
       
   896 //!                               5.1. TAvdtpMediaTransportCapabilities
       
   897 //!                               5.2. TAvdtpReportingCapabilities
       
   898 //!                               5.3. TAvdtpRecoveryCapabilities
       
   899 //!                               5.4. TAvdtpContentProtectionCapabilities
       
   900 //!                               5.5. TNonSBCCodecCapabilities
       
   901 //!                             6. Commit the local SEP configuration
       
   902 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   903 //!                             8. Connect to a remote device.
       
   904 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
   905 //!                             10. Discover SEPs of remote device.
       
   906 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
   907 //!                             12. Begin configuration of a remote SEP
       
   908 //!                             13. Add SEP capabilities:
       
   909 //!                               13.1. TAvdtpMediaTransportCapabilities
       
   910 //!                               13.2. TAvdtpReportingCapabilities
       
   911 //!                               13.3. TAvdtpRecoveryCapabilities
       
   912 //!                               13.4. TAvdtpContentProtectionCapabilities
       
   913 //!                             14. Commit the remote SEP configuration
       
   914 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
   915 //!                             16. Create bearers
       
   916 //!                             17. Start stream
       
   917 //!                             18. Wait for call back to MGavdpUser::GAVDP_StartStreamsConfirm()
       
   918 //!                             19. Send data
       
   919 //!                             20. Wait for call back to RunL()
       
   920 //!                             21. Abort stream
       
   921 //!                             22. Wait for call back to MGavdpUser::GAVDP_ MGavdpUser::GAVDP_AbortStreamConfirm()
       
   922 //!                             23. Close bearers
       
   923 //!                             24. Closes the GAVDP session.
       
   924 //! @SYMTestStatus              Implemented
       
   925 //! @SYMTestPriority            High
       
   926 //! @SYMTestExpectedResults     1. Send data return KErrNone.
       
   927 //! @SYMTestType                CIT
       
   928     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
   929     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
   930         SHARED_ACTIVE_SCHEDULER
       
   931         RESTORE_OBJECT  TBTDevAddr          addrremote
       
   932         CREATE_OBJECT   RSocketServ         socketserv
       
   933         CREATE_OBJECT   RGavdp              gavdp
       
   934         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
   935         CREATE_OBJECT   TSEID                                 localseid
       
   936         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
   937         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
   938         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
   939         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
   940         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
   941         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
   942         CREATE_OBJECT   TSEID                                 remoteseid
       
   943         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
   944         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
   945         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
   946         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
   947         
       
   948         COMMAND         socketserv          RSocketServ
       
   949         COMMAND         socketserv          Connect
       
   950         COMMAND         gavdp               new
       
   951         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0009-0001-Open_Command04
       
   952         
       
   953         COMMAND         localsepinfo1       new
       
   954         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetIsSink_Command06
       
   955         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetMediaType_Command07
       
   956         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0009-0001-RegisterSEP_Command08
       
   957         COMMAND         localseid           new
       
   958         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SEID_Command10
       
   959         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0009-0001-BeginConfiguringLocalSEP_Command11
       
   960         COMMAND         captransport1       new
       
   961         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command13
       
   962         COMMAND         capreport1          new
       
   963         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command15
       
   964         COMMAND         caprecovery1        new
       
   965         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetRecoveryType_Command17
       
   966         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetMaxWindowSize_Command18
       
   967         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetMinWindowSize_Command19
       
   968         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command20
       
   969         COMMAND         capprotect1         new
       
   970         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetContentProtectionType_Command22
       
   971         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetContentProtectionData_Command23
       
   972         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command24
       
   973         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0009-0001-new_Command25
       
   974         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command26
       
   975         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0009-0001-CommitSEPConfiguration_Command27
       
   976         OUTSTANDING
       
   977         
       
   978         DELAY           5000000
       
   979         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0009-0001-Connect_Command29
       
   980         OUTSTANDING
       
   981         
       
   982         COMMAND         remotesepinfo1      new
       
   983         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0009-0001-DiscoverRemoteSEPs_Command32
       
   984         OUTSTANDING
       
   985         
       
   986         COMMAND         remoteseid          new
       
   987         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SEID_Command35
       
   988         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0009-0001-BeginConfiguringRemoteSEP_Command36
       
   989         COMMAND         captransport3       new
       
   990         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command38
       
   991         COMMAND         capreport3          new
       
   992         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command40
       
   993         COMMAND         caprecovery3        new
       
   994         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetRecoveryType_Command42
       
   995         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetMaxWindowSize_Command43
       
   996         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetMinWindowSize_Command44
       
   997         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command45   
       
   998         COMMAND         capprotect3         new
       
   999         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetContentProtectionType_Command47
       
  1000         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0009-0001-SetContentProtectionData_Command48
       
  1001         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AddSEPCapability_Command49
       
  1002         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0009-0001-CommitSEPConfiguration_Command52
       
  1003         OUTSTANDING
       
  1004         
       
  1005         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0009-0001-CreateBearerSockets_Command54
       
  1006         OUTSTANDING
       
  1007         
       
  1008         COMMAND         gavdp               StartStream                 BT-GAVDP-PublishedPartner-Active-Master-0009-0001-StartStream_Command56
       
  1009         OUTSTANDING
       
  1010         
       
  1011         DELAY           5000000
       
  1012         COMMAND         gavdp               Send                        BT-GAVDP-PublishedPartner-Active-Master-0009-0001-Send_Command59
       
  1013         OUTSTANDING
       
  1014         
       
  1015         DELAY           5000000
       
  1016         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0009-0001-AbortStream_Command61
       
  1017         OUTSTANDING
       
  1018         
       
  1019         COMMAND         gavdp               CloseBearerSockets
       
  1020         
       
  1021         COMMAND         gavdp               Close
       
  1022         COMMAND         socketserv          Close
       
  1023         STORE           addrremote
       
  1024         STORE_ACTIVE_SCHEDULER
       
  1025     END_TEST_BLOCK
       
  1026     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1027 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0009
       
  1028 
       
  1029 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0010
       
  1030 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0010
       
  1031 //! @SYMAPI                     RGavdp::SuspendStream(TSEID);
       
  1032 //!                             MGavdpUser::GAVDP_SuspendStreamsConfirm()
       
  1033 //! @SYMAuthor                  Niandong Qiao
       
  1034 //! @SYMCreationDate            05-06-2008
       
  1035 //! @SYMTestCaseDesc            Suspend stream and then restart the stream.
       
  1036 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1037 //!                             2. Open a GAVDP session.
       
  1038 //!                             3. Register SEP (source & audio)
       
  1039 //!                             4. Begin configuration of this SEP
       
  1040 //!                             5. Add local SEP capabilities:
       
  1041 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1042 //!                               5.2. TAvdtpReportingCapabilities
       
  1043 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1044 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1045 //!                               5.5. TNonSBCCodecCapabilities
       
  1046 //!                             6. Commit the local SEP configuration
       
  1047 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1048 //!                             8. Connect to a remote device.
       
  1049 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  1050 //!                             10. Discover SEPs of remote device.
       
  1051 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  1052 //!                             12. Begin configuration of a remote SEP
       
  1053 //!                             13. Add SEP capabilities:
       
  1054 //!                               13.1. TAvdtpMediaTransportCapabilities
       
  1055 //!                               13.2. TAvdtpReportingCapabilities
       
  1056 //!                               13.3. TAvdtpRecoveryCapabilities
       
  1057 //!                               13.4. TAvdtpContentProtectionCapabilities
       
  1058 //!                             14. Commit the remote SEP configuration
       
  1059 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1060 //!                             16. Create bearers
       
  1061 //!                             17. Start stream
       
  1062 //!                             18. Wait for call back to MGavdpUser::GAVDP_StartStreamsConfirm()
       
  1063 //!                             19. Suspend stream
       
  1064 //!                             20. Wait for call back to MGavdpUser::GAVDP_SuspendStreamsConfirm()
       
  1065 //!                             21. Start stream
       
  1066 //!                             22. Wait for call back to MGavdpUser::GAVDP_StartStreamsConfirm()
       
  1067 //!                             23. Abort stream
       
  1068 //!                             24. Wait for call back to MGavdpUser::GAVDP_ MGavdpUser::GAVDP_AbortStreamConfirm()
       
  1069 //!                             25. Close bearers
       
  1070 //!                             26. Closes the GAVDP session.
       
  1071 //! @SYMTestStatus              Implemented
       
  1072 //! @SYMTestPriority            High
       
  1073 //! @SYMTestExpectedResults     1. Method SuspendStream() called without causing panic.
       
  1074 //!                             2. The call back function GAVDP_SuspendStreamsConfirm() is called when the locally-initiated Suspend stream has successfully completed.
       
  1075 //!                             3. Method StartStream() called without causing panic.
       
  1076 //!                             4. The call back function GAVDP_StartStreamsConfirm() is called when the locally-initiated Start stream has successfully completed.
       
  1077 //! @SYMTestType                CIT
       
  1078     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1079     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1080         SHARED_ACTIVE_SCHEDULER
       
  1081         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1082         CREATE_OBJECT   RSocketServ         socketserv
       
  1083         CREATE_OBJECT   RGavdp              gavdp
       
  1084         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1085         CREATE_OBJECT   TSEID                                 localseid
       
  1086         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1087         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1088         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1089         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1090         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1091         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  1092         CREATE_OBJECT   TSEID                                 remoteseid
       
  1093         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
  1094         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
  1095         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
  1096         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
  1097         
       
  1098         COMMAND         socketserv          RSocketServ
       
  1099         COMMAND         socketserv          Connect
       
  1100         COMMAND         gavdp               new
       
  1101         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0010-0001-Open_Command04
       
  1102         
       
  1103         COMMAND         localsepinfo1       new
       
  1104         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetIsSink_Command06
       
  1105         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetMediaType_Command07
       
  1106         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0010-0001-RegisterSEP_Command08
       
  1107         COMMAND         localseid           new
       
  1108         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SEID_Command10
       
  1109         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0010-0001-BeginConfiguringLocalSEP_Command11
       
  1110         COMMAND         captransport1       new
       
  1111         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command13
       
  1112         COMMAND         capreport1          new
       
  1113         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command15
       
  1114         COMMAND         caprecovery1        new
       
  1115         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetRecoveryType_Command17
       
  1116         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetMaxWindowSize_Command18
       
  1117         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetMinWindowSize_Command19
       
  1118         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command20
       
  1119         COMMAND         capprotect1         new
       
  1120         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetContentProtectionType_Command22
       
  1121         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetContentProtectionData_Command23
       
  1122         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command24
       
  1123         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0010-0001-new_Command25
       
  1124         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command26
       
  1125         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0010-0001-CommitSEPConfiguration_Command27
       
  1126         OUTSTANDING
       
  1127         
       
  1128         DELAY           5000000
       
  1129         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0010-0001-Connect_Command29
       
  1130         OUTSTANDING
       
  1131         
       
  1132         COMMAND         remotesepinfo1      new
       
  1133         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0010-0001-DiscoverRemoteSEPs_Command32
       
  1134         OUTSTANDING
       
  1135         
       
  1136         COMMAND         remoteseid          new
       
  1137         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SEID_Command35
       
  1138         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0010-0001-BeginConfiguringRemoteSEP_Command36
       
  1139         COMMAND         captransport3       new
       
  1140         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command38
       
  1141         COMMAND         capreport3          new
       
  1142         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command40
       
  1143         COMMAND         caprecovery3        new
       
  1144         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetRecoveryType_Command42
       
  1145         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetMaxWindowSize_Command43
       
  1146         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetMinWindowSize_Command44
       
  1147         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command45   
       
  1148         COMMAND         capprotect3         new
       
  1149         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetContentProtectionType_Command47
       
  1150         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SetContentProtectionData_Command48
       
  1151         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AddSEPCapability_Command49
       
  1152         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0010-0001-CommitSEPConfiguration_Command52
       
  1153         OUTSTANDING
       
  1154         
       
  1155         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0010-0001-CreateBearerSockets_Command54
       
  1156         OUTSTANDING
       
  1157         
       
  1158         COMMAND         gavdp               StartStream                 BT-GAVDP-PublishedPartner-Active-Master-0010-0001-StartStream_Command56
       
  1159         OUTSTANDING
       
  1160         COMMAND         gavdp               SuspendStream               BT-GAVDP-PublishedPartner-Active-Master-0010-0001-SuspendStream_Command58
       
  1161         OUTSTANDING
       
  1162         COMMAND         gavdp               StartStream                 BT-GAVDP-PublishedPartner-Active-Master-0010-0001-StartStream_Command60
       
  1163         OUTSTANDING
       
  1164         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0010-0001-AbortStream_Command62
       
  1165         OUTSTANDING
       
  1166         
       
  1167         COMMAND         gavdp               CloseBearerSockets
       
  1168         
       
  1169         COMMAND         gavdp               Close
       
  1170         COMMAND         socketserv          Close
       
  1171         STORE           addrremote
       
  1172         STORE_ACTIVE_SCHEDULER
       
  1173     END_TEST_BLOCK
       
  1174     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1175 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0010
       
  1176 
       
  1177 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0011
       
  1178 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0011
       
  1179 //! @SYMAPI                     RGavdp::SendSecurityControl(TSEID, const TDesC8 {ref});
       
  1180 //!                             MGavdpUser::GAVDP_SecurityControlConfirm(const TDesC8 {ref})
       
  1181 //! @SYMAuthor                  Niandong Qiao
       
  1182 //! @SYMCreationDate            05-06-2008
       
  1183 //! @SYMTestCaseDesc            Send security control data to remote SEP and without changed by ACP.
       
  1184 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1185 //!                             2. Open a GAVDP session.
       
  1186 //!                             3. Register SEP (source & audio)
       
  1187 //!                             4. Begin configuration of this SEP
       
  1188 //!                             5. Add local SEP capabilities:
       
  1189 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1190 //!                               5.2. TAvdtpReportingCapabilities
       
  1191 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1192 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1193 //!                               5.5. TNonSBCCodecCapabilities
       
  1194 //!                             6. Commit the local SEP configuration
       
  1195 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1196 //!                             8. Connect to a remote device.
       
  1197 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  1198 //!                             10. Discover SEPs of remote device.
       
  1199 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  1200 //!                             12. Get all capabilities of a remote SEP.
       
  1201 //!                             13. Wait for call back to GAVDP_SEPCapability() and MGavdpUser::GAVDP_SEPCapabilityComplete()
       
  1202 //!                             14. Send security control data to remote SEP
       
  1203 //!                             15. Wait for call back to MGavdpUser::GAVDP_SecurityControlConfirm()
       
  1204 //!                             16. Closes the GAVDP session.
       
  1205 //! @SYMTestStatus              Implemented
       
  1206 //! @SYMTestPriority            High
       
  1207 //! @SYMTestExpectedResults     1. Method SendSecurityControl() called without causing panic.
       
  1208 //!                             2. The call back function GAVDP_SecurityControlConfirm() is called when the locally-initiated Security Control message successfully completed.
       
  1209 //!                             3. The data returned by the ACP is same to that supplied by INT.
       
  1210 //! @SYMTestType                CIT
       
  1211     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1212     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1213         SHARED_ACTIVE_SCHEDULER
       
  1214         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1215         CREATE_OBJECT   RSocketServ         socketserv
       
  1216         CREATE_OBJECT   RGavdp              gavdp
       
  1217         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1218         CREATE_OBJECT   TSEID                                 localseid
       
  1219         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1220         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1221         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1222         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1223         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1224         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  1225         CREATE_OBJECT   TSEID                                 remoteseid
       
  1226         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport2
       
  1227         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport2
       
  1228         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery2
       
  1229         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect2
       
  1230         
       
  1231         COMMAND         socketserv          RSocketServ
       
  1232         COMMAND         socketserv          Connect
       
  1233         COMMAND         gavdp               new
       
  1234         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0011-0001-Open_Command04
       
  1235         
       
  1236         COMMAND         localsepinfo1       new
       
  1237         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetIsSink_Command06
       
  1238         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetMediaType_Command07
       
  1239         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0011-0001-RegisterSEP_Command08
       
  1240         COMMAND         localseid           new
       
  1241         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SEID_Command10
       
  1242         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0011-0001-BeginConfiguringLocalSEP_Command11
       
  1243         COMMAND         captransport1       new
       
  1244         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-AddSEPCapability_Command13
       
  1245         COMMAND         capreport1          new
       
  1246         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-AddSEPCapability_Command15
       
  1247         COMMAND         caprecovery1        new
       
  1248         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetRecoveryType_Command17
       
  1249         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetMaxWindowSize_Command18
       
  1250         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetMinWindowSize_Command19
       
  1251         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-AddSEPCapability_Command20
       
  1252         COMMAND         capprotect1         new
       
  1253         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetContentProtectionType_Command22
       
  1254         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetContentProtectionData_Command23
       
  1255         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-AddSEPCapability_Command24
       
  1256         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0011-0001-new_Command25
       
  1257         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-AddSEPCapability_Command26
       
  1258         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0011-0001-CommitSEPConfiguration_Command27
       
  1259         OUTSTANDING
       
  1260         
       
  1261         DELAY           5000000
       
  1262         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0011-0001-Connect_Command29
       
  1263         OUTSTANDING
       
  1264         
       
  1265         COMMAND         remotesepinfo1      new
       
  1266         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0011-0001-DiscoverRemoteSEPs_Command32
       
  1267         OUTSTANDING
       
  1268         
       
  1269         COMMAND         captransport2       new
       
  1270         COMMAND         capreport2          new
       
  1271         COMMAND         caprecovery2        new
       
  1272         COMMAND         caprecovery2        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetRecoveryType_Command37
       
  1273         COMMAND         caprecovery2        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetMaxWindowSize_Command38
       
  1274         COMMAND         caprecovery2        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetMinWindowSize_Command39
       
  1275         COMMAND         capprotect2         new
       
  1276         COMMAND         capprotect2         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetContentProtectionType_Command41
       
  1277         COMMAND         capprotect2         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SetContentProtectionData_Command42
       
  1278         COMMAND         gavdp               GetRemoteSEPCapabilities    BT-GAVDP-PublishedPartner-Active-Master-0011-0001-GetRemoteSEPCapabilities_Command43
       
  1279         OUTSTANDING
       
  1280         
       
  1281         COMMAND         remoteseid          new
       
  1282         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SEID_Command46
       
  1283         COMMAND         gavdp               SendSecurityControl         BT-GAVDP-PublishedPartner-Active-Master-0011-0001-SendSecurityControl_Command47
       
  1284         OUTSTANDING
       
  1285         
       
  1286         COMMAND         gavdp               Close
       
  1287         COMMAND         socketserv          Close
       
  1288         STORE           addrremote
       
  1289         STORE_ACTIVE_SCHEDULER
       
  1290     END_TEST_BLOCK
       
  1291     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1292 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0011
       
  1293 
       
  1294 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0012
       
  1295 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0012
       
  1296 //! @SYMAPI                     RGavdp::SendSecurityControl(TSEID, const TDesC8 {ref});
       
  1297 //!                             MGavdpUser::GAVDP_SecurityControlConfirm(const TDesC8 {ref})
       
  1298 //! @SYMAuthor                  Niandong Qiao
       
  1299 //! @SYMCreationDate            05-06-2008
       
  1300 //! @SYMTestCaseDesc            Send security control data to remote SEP and changed by ACP.
       
  1301 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1302 //!                             2. Open a GAVDP session.
       
  1303 //!                             3. Register SEP (source & audio)
       
  1304 //!                             4. Begin configuration of this SEP
       
  1305 //!                             5. Add local SEP capabilities:
       
  1306 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1307 //!                               5.2. TAvdtpReportingCapabilities
       
  1308 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1309 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1310 //!                               5.5. TNonSBCCodecCapabilities
       
  1311 //!                             6. Commit the local SEP configuration
       
  1312 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1313 //!                             8. Connect to a remote device.
       
  1314 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  1315 //!                             10. Discover SEPs of remote device.
       
  1316 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  1317 //!                             12. Get all capabilities of a remote SEP.
       
  1318 //!                             13. Wait for call back to GAVDP_SEPCapability() and MGavdpUser::GAVDP_SEPCapabilityComplete()
       
  1319 //!                             14. Send security control data to remote SEP
       
  1320 //!                             15. Wait for call back to MGavdpUser::GAVDP_SecurityControlConfirm()
       
  1321 //!                             16. Closes the GAVDP session.
       
  1322 //! @SYMTestStatus              Implemented
       
  1323 //! @SYMTestPriority            High
       
  1324 //! @SYMTestExpectedResults     1. Method SendSecurityControl() called without causing panic.
       
  1325 //!                             2. The call back function GAVDP_SecurityControlConfirm() is called when the locally-initiated Security Control message successfully completed.
       
  1326 //!                             3. The data returned is changed by the ACP.
       
  1327 //! @SYMTestType                CIT
       
  1328     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1329     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1330         SHARED_ACTIVE_SCHEDULER
       
  1331         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1332         CREATE_OBJECT   RSocketServ         socketserv
       
  1333         CREATE_OBJECT   RGavdp              gavdp
       
  1334         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1335         CREATE_OBJECT   TSEID                                 localseid
       
  1336         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1337         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1338         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1339         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1340         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1341         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  1342         CREATE_OBJECT   TSEID                                 remoteseid
       
  1343         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport2
       
  1344         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport2
       
  1345         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery2
       
  1346         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect2
       
  1347         
       
  1348         COMMAND         socketserv          RSocketServ
       
  1349         COMMAND         socketserv          Connect
       
  1350         COMMAND         gavdp               new
       
  1351         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0012-0001-Open_Command04
       
  1352         
       
  1353         COMMAND         localsepinfo1       new
       
  1354         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetIsSink_Command06
       
  1355         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetMediaType_Command07
       
  1356         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0012-0001-RegisterSEP_Command08
       
  1357         COMMAND         localseid           new
       
  1358         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SEID_Command10
       
  1359         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0012-0001-BeginConfiguringLocalSEP_Command11
       
  1360         COMMAND         captransport1       new
       
  1361         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-AddSEPCapability_Command13
       
  1362         COMMAND         capreport1          new
       
  1363         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-AddSEPCapability_Command15
       
  1364         COMMAND         caprecovery1        new
       
  1365         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetRecoveryType_Command17
       
  1366         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetMaxWindowSize_Command18
       
  1367         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetMinWindowSize_Command19
       
  1368         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-AddSEPCapability_Command20
       
  1369         COMMAND         capprotect1         new
       
  1370         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetContentProtectionType_Command22
       
  1371         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetContentProtectionData_Command23
       
  1372         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-AddSEPCapability_Command24
       
  1373         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0012-0001-new_Command25
       
  1374         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-AddSEPCapability_Command26
       
  1375         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0012-0001-CommitSEPConfiguration_Command27
       
  1376         OUTSTANDING
       
  1377         
       
  1378         DELAY           5000000
       
  1379         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0012-0001-Connect_Command29
       
  1380         OUTSTANDING
       
  1381         
       
  1382         COMMAND         remotesepinfo1      new
       
  1383         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0012-0001-DiscoverRemoteSEPs_Command32
       
  1384         OUTSTANDING
       
  1385         
       
  1386         COMMAND         captransport2       new
       
  1387         COMMAND         capreport2          new
       
  1388         COMMAND         caprecovery2        new
       
  1389         COMMAND         caprecovery2        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetRecoveryType_Command37
       
  1390         COMMAND         caprecovery2        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetMaxWindowSize_Command38
       
  1391         COMMAND         caprecovery2        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetMinWindowSize_Command39
       
  1392         COMMAND         capprotect2         new
       
  1393         COMMAND         capprotect2         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetContentProtectionType_Command41
       
  1394         COMMAND         capprotect2         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SetContentProtectionData_Command42
       
  1395         COMMAND         gavdp               GetRemoteSEPCapabilities    BT-GAVDP-PublishedPartner-Active-Master-0012-0001-GetRemoteSEPCapabilities_Command43
       
  1396         OUTSTANDING
       
  1397         
       
  1398         COMMAND         remoteseid          new
       
  1399         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SEID_Command46
       
  1400         COMMAND         gavdp               SendSecurityControl         BT-GAVDP-PublishedPartner-Active-Master-0012-0001-SendSecurityControl_Command47
       
  1401         OUTSTANDING
       
  1402         
       
  1403         COMMAND         gavdp               Close
       
  1404         COMMAND         socketserv          Close
       
  1405         STORE           addrremote
       
  1406         STORE_ACTIVE_SCHEDULER
       
  1407     END_TEST_BLOCK
       
  1408     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1409 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0012
       
  1410 
       
  1411 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0013
       
  1412 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0013
       
  1413 //! @SYMAPI                     MGavdpUser::GAVDP_ReleaseIndication(TSEID)
       
  1414 //! @SYMAuthor                  Niandong Qiao
       
  1415 //! @SYMCreationDate            05-06-2008
       
  1416 //! @SYMTestCaseDesc            Send data and then close bearers and remote device will callback to MGavdpUser::GAVDP_ReleaseIndication().
       
  1417 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1418 //!                             2. Open a GAVDP session.
       
  1419 //!                             3. Register SEP (source & audio)
       
  1420 //!                             4. Begin configuration of this SEP
       
  1421 //!                             5. Add local SEP capabilities:
       
  1422 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1423 //!                               5.2. TAvdtpReportingCapabilities
       
  1424 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1425 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1426 //!                               5.5. TNonSBCCodecCapabilities
       
  1427 //!                             6. Commit the local SEP configuration
       
  1428 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1429 //!                             8. Connect to a remote device.
       
  1430 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  1431 //!                             10. Discover SEPs of remote device.
       
  1432 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  1433 //!                             12. Begin configuration of a remote SEP
       
  1434 //!                             13. Add SEP capabilities:
       
  1435 //!                               13.1. TAvdtpMediaTransportCapabilities
       
  1436 //!                               13.2. TAvdtpReportingCapabilities
       
  1437 //!                               13.3. TAvdtpRecoveryCapabilities
       
  1438 //!                               13.4. TAvdtpContentProtectionCapabilities
       
  1439 //!                             14. Commit the remote SEP configuration
       
  1440 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1441 //!                             16. Create bearers
       
  1442 //!                             17. Start stream
       
  1443 //!                             18. Wait for call back to MGavdpUser::GAVDP_StartStreamsConfirm()
       
  1444 //!                             19. Send data
       
  1445 //!                             20. Wait for call back to RunL()
       
  1446 //!                             21. Close bearers
       
  1447 //!                             22. Closes the GAVDP session.
       
  1448 //! @SYMTestStatus              Implemented
       
  1449 //! @SYMTestPriority            High
       
  1450 //! @SYMTestExpectedResults     1. Close bearers without causing panic.
       
  1451 //! @SYMTestType                CIT
       
  1452     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1453     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1454         SHARED_ACTIVE_SCHEDULER
       
  1455         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1456         CREATE_OBJECT   RSocketServ         socketserv
       
  1457         CREATE_OBJECT   RGavdp              gavdp
       
  1458         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1459         CREATE_OBJECT   TSEID                                 localseid
       
  1460         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1461         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1462         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1463         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1464         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1465         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  1466         CREATE_OBJECT   TSEID                                 remoteseid
       
  1467         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
  1468         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
  1469         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
  1470         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
  1471         
       
  1472         COMMAND         socketserv          RSocketServ
       
  1473         COMMAND         socketserv          Connect
       
  1474         COMMAND         gavdp               new
       
  1475         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0013-0001-Open_Command04
       
  1476         
       
  1477         COMMAND         localsepinfo1       new
       
  1478         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetIsSink_Command06
       
  1479         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetMediaType_Command07
       
  1480         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0013-0001-RegisterSEP_Command08
       
  1481         COMMAND         localseid           new
       
  1482         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SEID_Command10
       
  1483         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0013-0001-BeginConfiguringLocalSEP_Command11
       
  1484         COMMAND         captransport1       new
       
  1485         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command13
       
  1486         COMMAND         capreport1          new
       
  1487         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command15
       
  1488         COMMAND         caprecovery1        new
       
  1489         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetRecoveryType_Command17
       
  1490         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetMaxWindowSize_Command18
       
  1491         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetMinWindowSize_Command19
       
  1492         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command20
       
  1493         COMMAND         capprotect1         new
       
  1494         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetContentProtectionType_Command22
       
  1495         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetContentProtectionData_Command23
       
  1496         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command24
       
  1497         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0013-0001-new_Command25
       
  1498         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command26
       
  1499         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0013-0001-CommitSEPConfiguration_Command27
       
  1500         OUTSTANDING
       
  1501         
       
  1502         DELAY           5000000
       
  1503         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0013-0001-Connect_Command29
       
  1504         OUTSTANDING
       
  1505         
       
  1506         COMMAND         remotesepinfo1      new
       
  1507         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0013-0001-DiscoverRemoteSEPs_Command32
       
  1508         OUTSTANDING
       
  1509         
       
  1510         COMMAND         remoteseid          new
       
  1511         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SEID_Command35
       
  1512         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0013-0001-BeginConfiguringRemoteSEP_Command36
       
  1513         COMMAND         captransport3       new
       
  1514         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command38
       
  1515         COMMAND         capreport3          new
       
  1516         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command40
       
  1517         COMMAND         caprecovery3        new
       
  1518         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetRecoveryType_Command42
       
  1519         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetMaxWindowSize_Command43
       
  1520         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetMinWindowSize_Command44
       
  1521         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command45   
       
  1522         COMMAND         capprotect3         new
       
  1523         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetContentProtectionType_Command47
       
  1524         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0013-0001-SetContentProtectionData_Command48
       
  1525         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0013-0001-AddSEPCapability_Command49
       
  1526         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0013-0001-CommitSEPConfiguration_Command52
       
  1527         OUTSTANDING
       
  1528         
       
  1529         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0013-0001-CreateBearerSockets_Command54
       
  1530         OUTSTANDING
       
  1531         
       
  1532         COMMAND         gavdp               StartStream                 BT-GAVDP-PublishedPartner-Active-Master-0013-0001-StartStream_Command56
       
  1533         OUTSTANDING
       
  1534         
       
  1535         DELAY           5000000
       
  1536         COMMAND         gavdp               Send                        BT-GAVDP-PublishedPartner-Active-Master-0013-0001-Send_Command59
       
  1537         OUTSTANDING
       
  1538         
       
  1539         DELAY           5000000
       
  1540         COMMAND         gavdp               CloseBearerSockets
       
  1541         DELAY           5000000
       
  1542         
       
  1543         COMMAND         gavdp               Close
       
  1544         COMMAND         socketserv          Close
       
  1545         STORE           addrremote
       
  1546         STORE_ACTIVE_SCHEDULER
       
  1547     END_TEST_BLOCK
       
  1548     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1549 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0013
       
  1550 
       
  1551 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0014
       
  1552 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0014
       
  1553 //! @SYMAPI                     RGavdp::Cancel()
       
  1554 //! @SYMAuthor                  Niandong Qiao
       
  1555 //! @SYMCreationDate            05-06-2008
       
  1556 //! @SYMTestCaseDesc            Cancel a command of start stream.
       
  1557 //! @SYMTestActions             1. Create a RGavdp object by default constructor and try to call Cancel().
       
  1558 //!                             2. Open a GAVDP session.
       
  1559 //!                             3. Register SEP (source & audio)
       
  1560 //!                             4. Begin configuration of this SEP
       
  1561 //!                             5. Add local SEP capabilities:
       
  1562 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1563 //!                               5.2. TAvdtpReportingCapabilities
       
  1564 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1565 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1566 //!                               5.5. TNonSBCCodecCapabilities
       
  1567 //!                             6. Commit the local SEP configuration
       
  1568 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1569 //!                             8. Connect to a remote device.
       
  1570 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  1571 //!                             10. Discover SEPs of remote device.
       
  1572 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  1573 //!                             12. Begin configuration of a remote SEP
       
  1574 //!                             13. Add SEP capabilities:
       
  1575 //!                               13.1. TAvdtpMediaTransportCapabilities
       
  1576 //!                               13.2. TAvdtpReportingCapabilities
       
  1577 //!                               13.3. TAvdtpRecoveryCapabilities
       
  1578 //!                               13.4. TAvdtpContentProtectionCapabilities
       
  1579 //!                             14. Commit the remote SEP configuration
       
  1580 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1581 //!                             16. Create bearers
       
  1582 //!                             17. Start stream
       
  1583 //!                             18. Cancel the start stream command
       
  1584 //!                             19. Abort stream
       
  1585 //!                             20. Wait for call back to MGavdpUser::GAVDP_AbortStreamConfirm()
       
  1586 //!                             21. Close bearers
       
  1587 //!                             22. Closes the GAVDP session.
       
  1588 //! @SYMTestStatus              Implemented
       
  1589 //! @SYMTestPriority            High
       
  1590 //! @SYMTestExpectedResults     1. Method Cancel() called without causing panic.
       
  1591 //!                             2. The call back function GAVDP_StartStreamsConfirm() will not be called.
       
  1592 //! @SYMTestType                CIT
       
  1593     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1594     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1595         SHARED_ACTIVE_SCHEDULER
       
  1596         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1597         CREATE_OBJECT   RSocketServ         socketserv
       
  1598         CREATE_OBJECT   RGavdp              gavdp
       
  1599         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1600         CREATE_OBJECT   TSEID                                 localseid
       
  1601         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1602         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1603         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1604         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1605         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1606         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  1607         CREATE_OBJECT   TSEID                                 remoteseid
       
  1608         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
  1609         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
  1610         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
  1611         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
  1612         
       
  1613         COMMAND         socketserv          RSocketServ
       
  1614         COMMAND         socketserv          Connect
       
  1615         COMMAND         gavdp               new
       
  1616         COMMAND         gavdp               Cancel
       
  1617         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0014-0001-Open_Command04
       
  1618         
       
  1619         COMMAND         localsepinfo1       new
       
  1620         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetIsSink_Command06
       
  1621         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetMediaType_Command07
       
  1622         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0014-0001-RegisterSEP_Command08
       
  1623         COMMAND         localseid           new
       
  1624         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SEID_Command10
       
  1625         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0014-0001-BeginConfiguringLocalSEP_Command11
       
  1626         COMMAND         captransport1       new
       
  1627         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command13
       
  1628         COMMAND         capreport1          new
       
  1629         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command15
       
  1630         COMMAND         caprecovery1        new
       
  1631         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetRecoveryType_Command17
       
  1632         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetMaxWindowSize_Command18
       
  1633         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetMinWindowSize_Command19
       
  1634         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command20
       
  1635         COMMAND         capprotect1         new
       
  1636         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetContentProtectionType_Command22
       
  1637         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetContentProtectionData_Command23
       
  1638         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command24
       
  1639         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0014-0001-new_Command25
       
  1640         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command26
       
  1641         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0014-0001-CommitSEPConfiguration_Command27
       
  1642         OUTSTANDING
       
  1643         
       
  1644         DELAY           5000000
       
  1645         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0014-0001-Connect_Command29
       
  1646         OUTSTANDING
       
  1647         
       
  1648         COMMAND         remotesepinfo1      new
       
  1649         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0014-0001-DiscoverRemoteSEPs_Command32
       
  1650         OUTSTANDING
       
  1651         
       
  1652         COMMAND         remoteseid          new
       
  1653         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SEID_Command35
       
  1654         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0014-0001-BeginConfiguringRemoteSEP_Command36
       
  1655         COMMAND         captransport3       new
       
  1656         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command38
       
  1657         COMMAND         capreport3          new
       
  1658         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command40
       
  1659         COMMAND         caprecovery3        new
       
  1660         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetRecoveryType_Command42
       
  1661         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetMaxWindowSize_Command43
       
  1662         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetMinWindowSize_Command44
       
  1663         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command45   
       
  1664         COMMAND         capprotect3         new
       
  1665         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetContentProtectionType_Command47
       
  1666         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0014-0001-SetContentProtectionData_Command48
       
  1667         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AddSEPCapability_Command49
       
  1668         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0014-0001-CommitSEPConfiguration_Command52
       
  1669         OUTSTANDING
       
  1670         
       
  1671         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0014-0001-CreateBearerSockets_Command54
       
  1672         OUTSTANDING
       
  1673         
       
  1674         COMMAND         gavdp               StartStream                 BT-GAVDP-PublishedPartner-Active-Master-0014-0001-StartStream_Command56
       
  1675         COMMAND         gavdp               Cancel
       
  1676         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0014-0001-AbortStream_Command58
       
  1677         OUTSTANDING
       
  1678         
       
  1679         COMMAND         gavdp               CloseBearerSockets
       
  1680         
       
  1681         COMMAND         gavdp               Close
       
  1682         COMMAND         socketserv          Close
       
  1683         STORE           addrremote
       
  1684         STORE_ACTIVE_SCHEDULER
       
  1685     END_TEST_BLOCK
       
  1686     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1687 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0014
       
  1688 
       
  1689 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0015
       
  1690 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0015
       
  1691 //! @SYMAPI                     RGavdp::MaxSecurityControlLength()
       
  1692 //! @SYMAuthor                  Niandong Qiao
       
  1693 //! @SYMCreationDate            05-06-2008
       
  1694 //! @SYMTestCaseDesc            Returns the deprecated value KMaxAvdtpSecurityControlInfo.
       
  1695 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1696 //!                             2. Get KMaxAvdtpSecurityControlInfo
       
  1697 //! @SYMTestStatus              Implemented
       
  1698 //! @SYMTestPriority            High
       
  1699 //! @SYMTestExpectedResults     1. Return value of RGavdp::MaxSecurityControlLength() is as expected.
       
  1700 //! @SYMTestType                CIT
       
  1701     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1702         SHARED_ACTIVE_SCHEDULER
       
  1703         CREATE_OBJECT   RGavdp              gavdp
       
  1704         COMMAND         gavdp               new
       
  1705         COMMAND         gavdp               MaxSecurityControlLength    BT-GAVDP-PublishedPartner-Active-Master-0015-0001-MaxSecurityControlLength_Command5
       
  1706         STORE_ACTIVE_SCHEDULER
       
  1707     END_TEST_BLOCK
       
  1708 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0015
       
  1709 
       
  1710 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0016
       
  1711 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0016
       
  1712 //! @SYMAPI                     MGavdpUser::GAVDP_Error(TInt, const TDesC8 {ref})
       
  1713 //! @SYMAuthor                  Niandong Qiao
       
  1714 //! @SYMCreationDate            05-06-2008
       
  1715 //! @SYMTestCaseDesc            GAVDP error occurs.
       
  1716 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1717 //!                             2. Open a GAVDP session.
       
  1718 //!                             3. Register SEP (source & audio)
       
  1719 //!                             4. Begin configuration of this SEP
       
  1720 //!                             5. Add local SEP capabilities:
       
  1721 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1722 //!                               5.2. TAvdtpReportingCapabilities
       
  1723 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1724 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1725 //!                               5.5. TNonSBCCodecCapabilities
       
  1726 //!                             6. Commit the local SEP configuration
       
  1727 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1728 //!                             8. Connect to a remote device.
       
  1729 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  1730 //!                             10. Discover SEPs of remote device.
       
  1731 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  1732 //!                             12. Begin configuration of a remote SEP
       
  1733 //!                             13. Add SEP capabilities:
       
  1734 //!                               13.1. TAvdtpMediaTransportCapabilities
       
  1735 //!                               13.2. TAvdtpReportingCapabilities
       
  1736 //!                               13.3. TAvdtpRecoveryCapabilities
       
  1737 //!                               13.4. TAvdtpContentProtectionCapabilities
       
  1738 //!                             14. Commit the remote SEP configuration
       
  1739 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1740 //!                             16. Create bearers
       
  1741 //!                             17. Suspend stream
       
  1742 //!                             18. Wait for call back to MGavdpUser::GAVDP_Error()
       
  1743 //!                             19. Abort stream
       
  1744 //!                             20. Wait for call back to MGavdpUser::GAVDP_AbortStreamConfirm()
       
  1745 //!                             21. Close bearers
       
  1746 //!                             22. Closes the GAVDP session.
       
  1747 //! @SYMTestStatus              Implemented
       
  1748 //! @SYMTestPriority            High
       
  1749 //! @SYMTestExpectedResults     1. The call back function GAVDP_Error() is called when a GAVDP error occurs.
       
  1750 //! @SYMTestType                CIT
       
  1751     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1752     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1753         SHARED_ACTIVE_SCHEDULER
       
  1754         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1755         CREATE_OBJECT   RSocketServ         socketserv
       
  1756         CREATE_OBJECT   RGavdp              gavdp
       
  1757         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1758         CREATE_OBJECT   TSEID                                 localseid
       
  1759         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1760         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1761         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1762         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1763         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1764         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  1765         CREATE_OBJECT   TSEID                                 remoteseid
       
  1766         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
  1767         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
  1768         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
  1769         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
  1770         
       
  1771         COMMAND         socketserv          RSocketServ
       
  1772         COMMAND         socketserv          Connect
       
  1773         COMMAND         gavdp               new
       
  1774         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0016-0001-Open_Command04
       
  1775         
       
  1776         COMMAND         localsepinfo1       new
       
  1777         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetIsSink_Command06
       
  1778         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetMediaType_Command07
       
  1779         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0016-0001-RegisterSEP_Command08
       
  1780         COMMAND         localseid           new
       
  1781         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SEID_Command10
       
  1782         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0016-0001-BeginConfiguringLocalSEP_Command11
       
  1783         COMMAND         captransport1       new
       
  1784         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command13
       
  1785         COMMAND         capreport1          new
       
  1786         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command15
       
  1787         COMMAND         caprecovery1        new
       
  1788         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetRecoveryType_Command17
       
  1789         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetMaxWindowSize_Command18
       
  1790         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetMinWindowSize_Command19
       
  1791         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command20
       
  1792         COMMAND         capprotect1         new
       
  1793         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetContentProtectionType_Command22
       
  1794         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetContentProtectionData_Command23
       
  1795         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command24
       
  1796         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0016-0001-new_Command25
       
  1797         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command26
       
  1798         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0016-0001-CommitSEPConfiguration_Command27
       
  1799         OUTSTANDING
       
  1800         
       
  1801         DELAY           5000000
       
  1802         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0016-0001-Connect_Command29
       
  1803         OUTSTANDING
       
  1804         
       
  1805         COMMAND         remotesepinfo1      new
       
  1806         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0016-0001-DiscoverRemoteSEPs_Command32
       
  1807         OUTSTANDING
       
  1808         
       
  1809         COMMAND         remoteseid          new
       
  1810         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SEID_Command35
       
  1811         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0016-0001-BeginConfiguringRemoteSEP_Command36
       
  1812         COMMAND         captransport3       new
       
  1813         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command38
       
  1814         COMMAND         capreport3          new
       
  1815         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command40
       
  1816         COMMAND         caprecovery3        new
       
  1817         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetRecoveryType_Command42
       
  1818         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetMaxWindowSize_Command43
       
  1819         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetMinWindowSize_Command44
       
  1820         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command45   
       
  1821         COMMAND         capprotect3         new
       
  1822         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetContentProtectionType_Command47
       
  1823         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SetContentProtectionData_Command48
       
  1824         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AddSEPCapability_Command49
       
  1825         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0016-0001-CommitSEPConfiguration_Command52
       
  1826         OUTSTANDING
       
  1827         
       
  1828         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0016-0001-CreateBearerSockets_Command54
       
  1829         OUTSTANDING
       
  1830         
       
  1831         COMMAND     !AsyncError=-18     gavdp       SuspendStream       BT-GAVDP-PublishedPartner-Active-Master-0016-0001-SuspendStream_Command56
       
  1832         OUTSTANDING
       
  1833         
       
  1834         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0016-0001-AbortStream_Command58
       
  1835         OUTSTANDING
       
  1836         COMMAND         gavdp               CloseBearerSockets
       
  1837         
       
  1838         COMMAND         gavdp               Close
       
  1839         COMMAND         socketserv          Close
       
  1840         STORE           addrremote
       
  1841         STORE_ACTIVE_SCHEDULER
       
  1842     END_TEST_BLOCK
       
  1843     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1844 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0016
       
  1845 
       
  1846 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0017
       
  1847 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0017
       
  1848 //! @SYMAPI                     RGavdp::Connect(const TBTDevAddr {ref})
       
  1849 //! @SYMAuthor                  Niandong Qiao
       
  1850 //! @SYMCreationDate            05-06-2008
       
  1851 //! @SYMTestCaseDesc            Negative test, connect to a not ready remote device.
       
  1852 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1853 //!                             2. Open a GAVDP session.
       
  1854 //!                             3. Register SEP (source & audio)
       
  1855 //!                             4. Begin configuration of this SEP
       
  1856 //!                             5. Add local SEP capabilities:
       
  1857 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1858 //!                               5.2. TAvdtpReportingCapabilities
       
  1859 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1860 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1861 //!                               5.5. TNonSBCCodecCapabilities
       
  1862 //!                             6. Commit the local SEP configuration
       
  1863 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1864 //!                             8. Connect to a remote device.
       
  1865 //!                             9. Wait for call back to MGavdpUser::GAVDP_Error().
       
  1866 //!                             10. Closes the GAVDP session.
       
  1867 //! @SYMTestStatus              Implemented
       
  1868 //! @SYMTestPriority            High
       
  1869 //! @SYMTestExpectedResults     1. The call back function MGavdpUser::GAVDP_ConnectConfirm() is called with error number -34 after the method Connect() is called.
       
  1870 //! @SYMTestType                CIT
       
  1871     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1872     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1873         SHARED_ACTIVE_SCHEDULER
       
  1874         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1875         CREATE_OBJECT   RSocketServ         socketserv
       
  1876         CREATE_OBJECT   RGavdp              gavdp
       
  1877         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1878         CREATE_OBJECT   TSEID                                 localseid
       
  1879         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1880         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1881         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1882         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1883         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1884         
       
  1885         COMMAND         socketserv          RSocketServ
       
  1886         COMMAND         socketserv          Connect
       
  1887         COMMAND         gavdp               new
       
  1888         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0017-0001-Open_Command04
       
  1889         
       
  1890         COMMAND         localsepinfo1       new
       
  1891         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SetIsSink_Command06
       
  1892         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SetMediaType_Command07
       
  1893         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0017-0001-RegisterSEP_Command08
       
  1894         COMMAND         localseid           new
       
  1895         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SEID_Command10
       
  1896         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0017-0001-BeginConfiguringLocalSEP_Command11
       
  1897         COMMAND         captransport1       new
       
  1898         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0017-0001-AddSEPCapability_Command13
       
  1899         COMMAND         capreport1          new
       
  1900         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0017-0001-AddSEPCapability_Command15
       
  1901         COMMAND         caprecovery1        new
       
  1902         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SetRecoveryType_Command17
       
  1903         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SetMaxWindowSize_Command18
       
  1904         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SetMinWindowSize_Command19
       
  1905         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0017-0001-AddSEPCapability_Command20
       
  1906         COMMAND         capprotect1         new
       
  1907         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SetContentProtectionType_Command22
       
  1908         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0017-0001-SetContentProtectionData_Command23
       
  1909         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0017-0001-AddSEPCapability_Command24
       
  1910         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0017-0001-new_Command25
       
  1911         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0017-0001-AddSEPCapability_Command26
       
  1912         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0017-0001-CommitSEPConfiguration_Command27
       
  1913         OUTSTANDING
       
  1914         
       
  1915         DELAY           5000000
       
  1916         COMMAND !AsyncError=-34 gavdp       Connect                     BT-GAVDP-PublishedPartner-Active-Master-0017-0001-Connect_Command29
       
  1917         OUTSTANDING
       
  1918         
       
  1919         COMMAND         gavdp               Close
       
  1920         COMMAND         socketserv          Close
       
  1921         STORE           addrremote
       
  1922         STORE_ACTIVE_SCHEDULER
       
  1923     END_TEST_BLOCK
       
  1924     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  1925 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0017
       
  1926 
       
  1927 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0018
       
  1928 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0018
       
  1929 //! @SYMAPI                     RGavdp::CommitSEPConfiguration()
       
  1930 //! @SYMAuthor                  Niandong Qiao
       
  1931 //! @SYMCreationDate            05-06-2008
       
  1932 //! @SYMTestCaseDesc            Configure remote SEP, and rejected by romte side.
       
  1933 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  1934 //!                             2. Open a GAVDP session.
       
  1935 //!                             3. Register SEP (source & audio)
       
  1936 //!                             4. Begin configuration of this SEP
       
  1937 //!                             5. Add local SEP capabilities:
       
  1938 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  1939 //!                               5.2. TAvdtpReportingCapabilities
       
  1940 //!                               5.3. TAvdtpRecoveryCapabilities
       
  1941 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  1942 //!                               5.5. TNonSBCCodecCapabilities
       
  1943 //!                             6. Commit the local SEP configuration
       
  1944 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  1945 //!                             8. Connect to a remote device.
       
  1946 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  1947 //!                             10. Discover SEPs of remote device.
       
  1948 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  1949 //!                             12. Begin configuration of a remote SEP
       
  1950 //!                             13. Add SEP capabilities:
       
  1951 //!                               13.1. TAvdtpMediaTransportCapabilities
       
  1952 //!                               13.2. TAvdtpReportingCapabilities
       
  1953 //!                               13.3. TAvdtpRecoveryCapabilities
       
  1954 //!                               13.4. TAvdtpContentProtectionCapabilities
       
  1955 //!                             14. Commit the remote SEP configuration
       
  1956 //!                             15. Wait for call back to MGavdpUser::GAVDP_Error()
       
  1957 //!                             16. Closes the GAVDP session.
       
  1958 //! @SYMTestStatus              Implemented
       
  1959 //! @SYMTestPriority            High
       
  1960 //! @SYMTestExpectedResults     1. The callback function MGavdpUser::GAVDP_Error() is called with error number -18178 when locally-initiated configuration rejected by romte side.
       
  1961 //! @SYMTestType                CIT
       
  1962     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  1963     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  1964         SHARED_ACTIVE_SCHEDULER
       
  1965         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  1966         CREATE_OBJECT   RSocketServ         socketserv
       
  1967         CREATE_OBJECT   RGavdp              gavdp
       
  1968         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  1969         CREATE_OBJECT   TSEID                                 localseid
       
  1970         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  1971         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  1972         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  1973         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  1974         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  1975         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  1976         CREATE_OBJECT   TSEID                                 remoteseid
       
  1977         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
  1978         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
  1979         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
  1980         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
  1981         
       
  1982         COMMAND         socketserv          RSocketServ
       
  1983         COMMAND         socketserv          Connect
       
  1984         COMMAND         gavdp               new
       
  1985         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0018-0001-Open_Command04
       
  1986         
       
  1987         COMMAND         localsepinfo1       new
       
  1988         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetIsSink_Command06
       
  1989         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetMediaType_Command07
       
  1990         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0018-0001-RegisterSEP_Command08
       
  1991         COMMAND         localseid           new
       
  1992         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SEID_Command10
       
  1993         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0018-0001-BeginConfiguringLocalSEP_Command11
       
  1994         COMMAND         captransport1       new
       
  1995         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command13
       
  1996         COMMAND         capreport1          new
       
  1997         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command15
       
  1998         COMMAND         caprecovery1        new
       
  1999         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetRecoveryType_Command17
       
  2000         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetMaxWindowSize_Command18
       
  2001         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetMinWindowSize_Command19
       
  2002         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command20
       
  2003         COMMAND         capprotect1         new
       
  2004         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetContentProtectionType_Command22
       
  2005         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetContentProtectionData_Command23
       
  2006         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command24
       
  2007         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0018-0001-new_Command25
       
  2008         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command26
       
  2009         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0018-0001-CommitSEPConfiguration_Command27
       
  2010         OUTSTANDING
       
  2011         
       
  2012         DELAY           5000000
       
  2013         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0018-0001-Connect_Command29
       
  2014         OUTSTANDING
       
  2015         
       
  2016         COMMAND         remotesepinfo1      new
       
  2017         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0018-0001-DiscoverRemoteSEPs_Command32
       
  2018         OUTSTANDING
       
  2019         
       
  2020         COMMAND         remoteseid          new
       
  2021         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SEID_Command35
       
  2022         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0018-0001-BeginConfiguringRemoteSEP_Command36
       
  2023         COMMAND         captransport3       new
       
  2024         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command38
       
  2025         COMMAND         capreport3          new
       
  2026         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command40
       
  2027         COMMAND         caprecovery3        new
       
  2028         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetRecoveryType_Command42
       
  2029         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetMaxWindowSize_Command43
       
  2030         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetMinWindowSize_Command44
       
  2031         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command45   
       
  2032         COMMAND         capprotect3         new
       
  2033         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetContentProtectionType_Command47
       
  2034         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0018-0001-SetContentProtectionData_Command48
       
  2035         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0018-0001-AddSEPCapability_Command49
       
  2036         COMMAND    !AsyncError=-18178     gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0018-0001-CommitSEPConfiguration_Command52
       
  2037         OUTSTANDING
       
  2038         
       
  2039         COMMAND         gavdp               Close
       
  2040         COMMAND         socketserv          Close
       
  2041         STORE           addrremote
       
  2042         STORE_ACTIVE_SCHEDULER
       
  2043     END_TEST_BLOCK
       
  2044     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  2045 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0018
       
  2046 
       
  2047 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0019
       
  2048 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0019
       
  2049 //! @SYMAPI                     RGavdp::Listen()
       
  2050 //! @SYMAuthor                  Niandong Qiao
       
  2051 //! @SYMCreationDate            05-06-2008
       
  2052 //! @SYMTestCaseDesc            Negative test, call listen() again at the remote side after remote SEP has been connected.
       
  2053 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  2054 //!                             2. Open a GAVDP session.
       
  2055 //!                             3. Register SEP (source & audio)
       
  2056 //!                             4. Begin configuration of this SEP
       
  2057 //!                             5. Add local SEP capabilities:
       
  2058 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  2059 //!                               5.2. TAvdtpReportingCapabilities
       
  2060 //!                               5.3. TAvdtpRecoveryCapabilities
       
  2061 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  2062 //!                               5.5. TNonSBCCodecCapabilities
       
  2063 //!                             6. Commit the local SEP configuration
       
  2064 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2065 //!                             8. Connect to a remote device.
       
  2066 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  2067 //!                             10. Shutdown the GAVDP.
       
  2068 //!                             11. Closes the GAVDP session.
       
  2069 //! @SYMTestStatus              Implemented
       
  2070 //! @SYMTestPriority            High
       
  2071 //! @SYMTestExpectedResults     1. Method Connect() return KErrNone.
       
  2072 //!                             2. The call back function MGavdpUser::GAVDP_ConnectConfirm() is called  when a signalling channel has successfully been created.
       
  2073 //!                             3. Method Shutdown()return KErrNone.
       
  2074 //! @SYMTestType                CIT
       
  2075     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  2076     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  2077         SHARED_ACTIVE_SCHEDULER
       
  2078         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  2079         CREATE_OBJECT   RSocketServ         socketserv
       
  2080         CREATE_OBJECT   RGavdp              gavdp
       
  2081         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  2082         CREATE_OBJECT   TSEID                                 localseid
       
  2083         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  2084         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  2085         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  2086         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  2087         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  2088         
       
  2089         COMMAND         socketserv          RSocketServ
       
  2090         COMMAND         socketserv          Connect
       
  2091         COMMAND         gavdp               new
       
  2092         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0019-0001-Open_Command04
       
  2093         
       
  2094         COMMAND         localsepinfo1       new
       
  2095         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SetIsSink_Command06
       
  2096         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SetMediaType_Command07
       
  2097         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0019-0001-RegisterSEP_Command08
       
  2098         COMMAND         localseid           new
       
  2099         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SEID_Command10
       
  2100         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0019-0001-BeginConfiguringLocalSEP_Command11
       
  2101         COMMAND         captransport1       new
       
  2102         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0019-0001-AddSEPCapability_Command13
       
  2103         COMMAND         capreport1          new
       
  2104         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0019-0001-AddSEPCapability_Command15
       
  2105         COMMAND         caprecovery1        new
       
  2106         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SetRecoveryType_Command17
       
  2107         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SetMaxWindowSize_Command18
       
  2108         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SetMinWindowSize_Command19
       
  2109         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0019-0001-AddSEPCapability_Command20
       
  2110         COMMAND         capprotect1         new
       
  2111         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SetContentProtectionType_Command22
       
  2112         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0019-0001-SetContentProtectionData_Command23
       
  2113         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0019-0001-AddSEPCapability_Command24
       
  2114         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0019-0001-new_Command25
       
  2115         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0019-0001-AddSEPCapability_Command26
       
  2116         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0019-0001-CommitSEPConfiguration_Command27
       
  2117         OUTSTANDING
       
  2118         
       
  2119         DELAY           5000000
       
  2120         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0019-0001-Connect_Command29
       
  2121         OUTSTANDING
       
  2122         DELAY           5000000
       
  2123         COMMAND         gavdp               Shutdown
       
  2124         
       
  2125         COMMAND         gavdp               Close
       
  2126         COMMAND         socketserv          Close
       
  2127         STORE           addrremote
       
  2128         STORE_ACTIVE_SCHEDULER
       
  2129     END_TEST_BLOCK
       
  2130     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  2131 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0019
       
  2132 
       
  2133 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0020
       
  2134 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0020
       
  2135 //! @SYMAPI                     RGavdp::BeginConfiguringRemoteSEP(TSEID, TSEID);
       
  2136 //!                             RGavdp::AddSEPCapability(const TAvdtpServiceCapability {ref});
       
  2137 //!                             RGavdp::CommitSEPConfiguration();
       
  2138 //!                             MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2139 //! @SYMAuthor                  Niandong Qiao
       
  2140 //! @SYMCreationDate            05-06-2008
       
  2141 //! @SYMTestCaseDesc            Reconfiguration of remote SEP.
       
  2142 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  2143 //!                             2. Open a GAVDP session.
       
  2144 //!                             3. Register SEP (source & audio)
       
  2145 //!                             4. Begin configuration of this SEP
       
  2146 //!                             5. Add local SEP capabilities:
       
  2147 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  2148 //!                               5.2. TAvdtpReportingCapabilities
       
  2149 //!                               5.3. TAvdtpRecoveryCapabilities
       
  2150 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  2151 //!                               5.5. TNonSBCCodecCapabilities
       
  2152 //!                             6. Commit the local SEP configuration
       
  2153 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2154 //!                             8. Connect to a remote device.
       
  2155 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  2156 //!                             10. Discover SEPs of remote device.
       
  2157 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  2158 //!                             12. Begin configuration of a remote SEP
       
  2159 //!                             13. Add SEP capabilities:
       
  2160 //!                               13.1. TAvdtpMediaTransportCapabilities
       
  2161 //!                               13.2. TAvdtpReportingCapabilities
       
  2162 //!                               13.3. TAvdtpRecoveryCapabilities
       
  2163 //!                             14. Commit the remote SEP configuration
       
  2164 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2165 //!                             16. Abort stream
       
  2166 //!                             17. Wait for call back to MGavdpUser::GAVDP_AbortStreamConfirm()
       
  2167 //!                             18. Begin reconfiguration of a remote SEP
       
  2168 //!                             19. Add SEP capabilities:
       
  2169 ///!                               19.1. TAvdtpContentProtectionCapabilities
       
  2170 //!                             20. Commit the remote SEP configuration
       
  2171 //!                             21. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2172 //!                             22. Closes the GAVDP session.
       
  2173 //! @SYMTestStatus              Implemented
       
  2174 //! @SYMTestPriority            High
       
  2175 //! @SYMTestExpectedResults     1. Method BeginConfiguringRemoteSEP() return KErrNone in both callings.
       
  2176 //!                             2. Method AddSEPCapability() return KErrNone in both callings.
       
  2177 //!                             3. Method CommitSEPConfiguration() called without causing panic in both callings.
       
  2178 //!                             4. The callback function MGavdpUser::GAVDP_ConfigurationConfirm() is called when locally-initiated configuration/reconfiguration procedure successfully completes.
       
  2179 //! @SYMTestType                CIT
       
  2180     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  2181     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  2182         SHARED_ACTIVE_SCHEDULER
       
  2183         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  2184         CREATE_OBJECT   RSocketServ         socketserv
       
  2185         CREATE_OBJECT   RGavdp              gavdp
       
  2186         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  2187         CREATE_OBJECT   TSEID                                 localseid
       
  2188         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  2189         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  2190         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  2191         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  2192         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  2193         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  2194         CREATE_OBJECT   TSEID                                 remoteseid
       
  2195         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
  2196         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
  2197         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
  2198         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
  2199         
       
  2200         COMMAND         socketserv          RSocketServ
       
  2201         COMMAND         socketserv          Connect
       
  2202         COMMAND         gavdp               new
       
  2203         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0020-0001-Open_Command04
       
  2204         
       
  2205         COMMAND         localsepinfo1       new
       
  2206         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetIsSink_Command06
       
  2207         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetMediaType_Command07
       
  2208         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0020-0001-RegisterSEP_Command08
       
  2209         COMMAND         localseid           new
       
  2210         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SEID_Command10
       
  2211         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0020-0001-BeginConfiguringLocalSEP_Command11
       
  2212         COMMAND         captransport1       new
       
  2213         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command13
       
  2214         COMMAND         capreport1          new
       
  2215         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command15
       
  2216         COMMAND         caprecovery1        new
       
  2217         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetRecoveryType_Command17
       
  2218         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetMaxWindowSize_Command18
       
  2219         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetMinWindowSize_Command19
       
  2220         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command20
       
  2221         COMMAND         capprotect1         new
       
  2222         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetContentProtectionType_Command22
       
  2223         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetContentProtectionData_Command23
       
  2224         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command24
       
  2225         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0020-0001-new_Command25
       
  2226         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command26
       
  2227         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0020-0001-CommitSEPConfiguration_Command27
       
  2228         OUTSTANDING
       
  2229         
       
  2230         DELAY           5000000
       
  2231         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0020-0001-Connect_Command29
       
  2232         OUTSTANDING
       
  2233         
       
  2234         COMMAND         remotesepinfo1      new
       
  2235         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0020-0001-DiscoverRemoteSEPs_Command32
       
  2236         OUTSTANDING
       
  2237         
       
  2238         COMMAND         remoteseid          new
       
  2239         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SEID_Command35
       
  2240         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0020-0001-BeginConfiguringRemoteSEP_Command36
       
  2241         COMMAND         captransport3       new
       
  2242         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command38
       
  2243         COMMAND         capreport3          new
       
  2244         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command40
       
  2245         COMMAND         caprecovery3        new
       
  2246         COMMAND         caprecovery3        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetRecoveryType_Command42
       
  2247         COMMAND         caprecovery3        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetMaxWindowSize_Command43
       
  2248         COMMAND         caprecovery3        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetMinWindowSize_Command44
       
  2249         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command45   
       
  2250         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0020-0001-CommitSEPConfiguration_Command46
       
  2251         OUTSTANDING
       
  2252         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AbortStream_Command48
       
  2253         OUTSTANDING
       
  2254         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0020-0001-BeginConfiguringRemoteSEP_Command36
       
  2255         COMMAND         capprotect3         new
       
  2256         COMMAND         capprotect3         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetContentProtectionType_Command52
       
  2257         COMMAND         capprotect3         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0020-0001-SetContentProtectionData_Command53
       
  2258         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0020-0001-AddSEPCapability_Command54
       
  2259         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0020-0001-CommitSEPConfiguration_Command46
       
  2260         OUTSTANDING
       
  2261         
       
  2262         COMMAND         gavdp               Close
       
  2263         COMMAND         socketserv          Close
       
  2264         STORE           addrremote
       
  2265         STORE_ACTIVE_SCHEDULER
       
  2266     END_TEST_BLOCK
       
  2267     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  2268 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0020
       
  2269 
       
  2270 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0021
       
  2271 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0021
       
  2272 //! @SYMAPI                     RGavdp::CreateBearerSockets(TSEID);
       
  2273 //!                             MGavdpUser::GAVDP_BearerReady(RSocket, const TAvdtpSockAddr {ref})
       
  2274 //! @SYMAuthor                  Niandong Qiao
       
  2275 //! @SYMCreationDate            05-06-2008
       
  2276 //! @SYMTestCaseDesc            Create transport bearer without reporting and recovery bearers.
       
  2277 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  2278 //!                             2. Open a GAVDP session.
       
  2279 //!                             3. Register SEP (source & audio)
       
  2280 //!                             4. Begin configuration of this SEP
       
  2281 //!                             5. Add local SEP capabilities:
       
  2282 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  2283 //!                               5.2. TAvdtpReportingCapabilities
       
  2284 //!                               5.3. TAvdtpRecoveryCapabilities
       
  2285 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  2286 //!                               5.5. TNonSBCCodecCapabilities
       
  2287 //!                             6. Commit the local SEP configuration
       
  2288 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2289 //!                             8. Connect to a remote device.
       
  2290 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  2291 //!                             10. Discover SEPs of remote device.
       
  2292 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  2293 //!                             12. Begin configuration of a remote SEP
       
  2294 //!                             13. Add SEP capabilities:
       
  2295 //!                               13.1. TAvdtpMediaTransportCapabilities
       
  2296 //!                             14. Commit the remote SEP configuration
       
  2297 //!                             15. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2298 //!                             16. Create transport bearer
       
  2299 //!                             17. Wait for call back to MGavdpUser::GAVDP_BearerReady()
       
  2300 //!                             18. Abort stream
       
  2301 //!                             19. Wait for call back to MGavdpUser::GAVDP_AbortStreamConfirm()
       
  2302 //!                             20. Close bearer
       
  2303 //!                             21. Closes the GAVDP session.
       
  2304 //! @SYMTestStatus              Implemented
       
  2305 //! @SYMTestPriority            High
       
  2306 //! @SYMTestExpectedResults     1. Method CreateBearerSockets() return KErrNone.
       
  2307 //!                             2. The call back function GAVDP_BearerReady() is called when the transport bearer has been created for a session in the stream.
       
  2308 //! @SYMTestType                CIT
       
  2309     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  2310     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  2311         SHARED_ACTIVE_SCHEDULER
       
  2312         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  2313         CREATE_OBJECT   RSocketServ         socketserv
       
  2314         CREATE_OBJECT   RGavdp              gavdp
       
  2315         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  2316         CREATE_OBJECT   TSEID                                 localseid
       
  2317         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  2318         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  2319         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  2320         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  2321         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  2322         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  2323         CREATE_OBJECT   TSEID                                 remoteseid
       
  2324         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport3
       
  2325         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport3
       
  2326         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery3
       
  2327         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect3
       
  2328         
       
  2329         COMMAND         socketserv          RSocketServ
       
  2330         COMMAND         socketserv          Connect
       
  2331         COMMAND         gavdp               new
       
  2332         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0021-0001-Open_Command04
       
  2333         
       
  2334         COMMAND         localsepinfo1       new
       
  2335         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SetIsSink_Command06
       
  2336         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SetMediaType_Command07
       
  2337         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0021-0001-RegisterSEP_Command08
       
  2338         COMMAND         localseid           new
       
  2339         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SEID_Command10
       
  2340         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0021-0001-BeginConfiguringLocalSEP_Command11
       
  2341         COMMAND         captransport1       new
       
  2342         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-AddSEPCapability_Command13
       
  2343         COMMAND         capreport1          new
       
  2344         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-AddSEPCapability_Command15
       
  2345         COMMAND         caprecovery1        new
       
  2346         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SetRecoveryType_Command17
       
  2347         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SetMaxWindowSize_Command18
       
  2348         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SetMinWindowSize_Command19
       
  2349         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-AddSEPCapability_Command20
       
  2350         COMMAND         capprotect1         new
       
  2351         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SetContentProtectionType_Command22
       
  2352         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SetContentProtectionData_Command23
       
  2353         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-AddSEPCapability_Command24
       
  2354         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0021-0001-new_Command25
       
  2355         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-AddSEPCapability_Command26
       
  2356         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0021-0001-CommitSEPConfiguration_Command27
       
  2357         OUTSTANDING
       
  2358         
       
  2359         DELAY           5000000
       
  2360         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0021-0001-Connect_Command29
       
  2361         OUTSTANDING
       
  2362         
       
  2363         COMMAND         remotesepinfo1      new
       
  2364         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0021-0001-DiscoverRemoteSEPs_Command32
       
  2365         OUTSTANDING
       
  2366         
       
  2367         COMMAND         remoteseid          new
       
  2368         COMMAND         remotesepinfo1      SEID                        BT-GAVDP-PublishedPartner-Active-Master-0021-0001-SEID_Command35
       
  2369         COMMAND         gavdp               BeginConfiguringRemoteSEP   BT-GAVDP-PublishedPartner-Active-Master-0021-0001-BeginConfiguringRemoteSEP_Command36
       
  2370         COMMAND         captransport3       new
       
  2371         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0021-0001-AddSEPCapability_Command38
       
  2372         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0021-0001-CommitSEPConfiguration_Command39
       
  2373         OUTSTANDING
       
  2374         
       
  2375         COMMAND         gavdp               CreateBearerSockets         BT-GAVDP-PublishedPartner-Active-Master-0021-0001-CreateBearerSockets_Command41
       
  2376         OUTSTANDING
       
  2377         
       
  2378         COMMAND         gavdp               AbortStream                 BT-GAVDP-PublishedPartner-Active-Master-0021-0001-AbortStream_Command43
       
  2379         OUTSTANDING
       
  2380         DELAY           5000000
       
  2381         
       
  2382         COMMAND         gavdp               CloseBearerSockets
       
  2383         
       
  2384         COMMAND         gavdp               Close
       
  2385         COMMAND         socketserv          Close
       
  2386         STORE           addrremote
       
  2387         STORE_ACTIVE_SCHEDULER
       
  2388     END_TEST_BLOCK
       
  2389     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  2390 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0021
       
  2391 
       
  2392 START_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0022
       
  2393 //! @SYMTestCaseID              BT-GAVDP-PublishedPartner-Active-Master-0022
       
  2394 //! @SYMAPI                     RGavdp:: GetRemoteSEPCapabilities(TSEID, const TAvdtpServiceCategories {ref});
       
  2395 //!                             MGavdpUser::GAVDP_Error()
       
  2396 //! @SYMAuthor                  Felix Rao
       
  2397 //! @SYMCreationDate            08-07-2008
       
  2398 //! @SYMTestCaseDesc            Negative test, get capabilities which remote device does not support.
       
  2399 //! @SYMTestActions             1. Create a RGavdp object by default constructor.
       
  2400 //!                             2. Open a GAVDP session.
       
  2401 //!                             3. Register SEP (source & audio)
       
  2402 //!                             4. Begin configuration of this SEP
       
  2403 //!                             5. Add local SEP capabilities:
       
  2404 //!                               5.1. TAvdtpMediaTransportCapabilities
       
  2405 //!                               5.2. TAvdtpReportingCapabilities
       
  2406 //!                               5.3. TAvdtpRecoveryCapabilities
       
  2407 //!                               5.4. TAvdtpContentProtectionCapabilities
       
  2408 //!                               5.5. TNonSBCCodecCapabilities
       
  2409 //!                             6. Commit the local SEP configuration
       
  2410 //!                             7. Wait for call back to MGavdpUser::GAVDP_ConfigurationConfirm()
       
  2411 //!                             8. Connect to a remote device.
       
  2412 //!                             9. Wait for call back to MGavdpUser::GAVDP_ConnectConfirm().
       
  2413 //!                             10. Discover SEPs of remote device.
       
  2414 //!                             11. Wait for call back to MGavdpUser::GAVDP_SEPDiscovered() and MGavdpUser::GAVDP_SEPDiscoveryComplete().
       
  2415 //!                             12. Get NonSBCCodecCapabilities which remote device does not support.
       
  2416 //!                             13. Wait for call back to MGavdpUser::Gavdp_Error() to indicate not supported capabilities.
       
  2417 //!                             14. Closes the GAVDP session.
       
  2418 //! @SYMTestStatus              Implemented
       
  2419 //! @SYMTestPriority            High
       
  2420 //! @SYMTestExpectedResults     1. Method MGavdpUser::GetRemoteSEPCapabilities() return KErrNone.
       
  2421 //!                             2. The call back function MGavdpUser::Gavdp_Error() is called with error number -5.
       
  2422 //! @SYMTestType                CIT
       
  2423     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StartSyncTestCase
       
  2424     START_TEST_BLOCK    100    t_btgavdpapi    \bluetooth\gavdp\bt-gavdp-publishedpartner-active-master.ini
       
  2425         SHARED_ACTIVE_SCHEDULER
       
  2426         RESTORE_OBJECT  TBTDevAddr          addrremote
       
  2427         CREATE_OBJECT   RSocketServ         socketserv
       
  2428         CREATE_OBJECT   RGavdp              gavdp
       
  2429         CREATE_OBJECT   TAvdtpSEPInfo                         localsepinfo1
       
  2430         CREATE_OBJECT   TSEID                                 localseid
       
  2431         CREATE_OBJECT   TAvdtpMediaTransportCapabilities      captransport1
       
  2432         CREATE_OBJECT   TAvdtpReportingCapabilities           capreport1
       
  2433         CREATE_OBJECT   TAvdtpRecoveryCapabilities            caprecovery1
       
  2434         CREATE_OBJECT   TAvdtpContentProtectionCapabilities   capprotect1
       
  2435         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc1
       
  2436         CREATE_OBJECT   TAvdtpSEPInfo                         remotesepinfo1
       
  2437         CREATE_OBJECT   TNonSBCCodecCapabilities              capnonsbc2
       
  2438         
       
  2439         COMMAND         socketserv          RSocketServ
       
  2440         COMMAND         socketserv          Connect
       
  2441         COMMAND         gavdp               new
       
  2442         COMMAND         gavdp               Open                        BT-GAVDP-PublishedPartner-Active-Master-0022-0001-Open_Command04
       
  2443         
       
  2444         COMMAND         localsepinfo1       new
       
  2445         COMMAND         localsepinfo1       SetIsSink                   BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SetIsSink_Command06
       
  2446         COMMAND         localsepinfo1       SetMediaType                BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SetMediaType_Command07
       
  2447         COMMAND         gavdp               RegisterSEP                 BT-GAVDP-PublishedPartner-Active-Master-0022-0001-RegisterSEP_Command08
       
  2448         COMMAND         localseid           new
       
  2449         COMMAND         localsepinfo1       SEID                        BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SEID_Command10
       
  2450         COMMAND         gavdp               BeginConfiguringLocalSEP    BT-GAVDP-PublishedPartner-Active-Master-0022-0001-BeginConfiguringLocalSEP_Command11
       
  2451         COMMAND         captransport1       new
       
  2452         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0022-0001-AddSEPCapability_Command13
       
  2453         COMMAND         capreport1          new
       
  2454         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0022-0001-AddSEPCapability_Command15
       
  2455         COMMAND         caprecovery1        new
       
  2456         COMMAND         caprecovery1        SetRecoveryType             BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SetRecoveryType_Command17
       
  2457         COMMAND         caprecovery1        SetMaxWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SetMaxWindowSize_Command18
       
  2458         COMMAND         caprecovery1        SetMinWindowSize            BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SetMinWindowSize_Command19
       
  2459         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0022-0001-AddSEPCapability_Command20
       
  2460         COMMAND         capprotect1         new
       
  2461         COMMAND         capprotect1         SetContentProtectionType    BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SetContentProtectionType_Command22
       
  2462         COMMAND         capprotect1         SetContentProtectionData    BT-GAVDP-PublishedPartner-Active-Master-0022-0001-SetContentProtectionData_Command23
       
  2463         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0022-0001-AddSEPCapability_Command24
       
  2464         COMMAND         capnonsbc1          new                         BT-GAVDP-PublishedPartner-Active-Master-0022-0001-new_Command25
       
  2465         COMMAND         gavdp               AddSEPCapability            BT-GAVDP-PublishedPartner-Active-Master-0022-0001-AddSEPCapability_Command26
       
  2466         COMMAND         gavdp               CommitSEPConfiguration      BT-GAVDP-PublishedPartner-Active-Master-0022-0001-CommitSEPConfiguration_Command27
       
  2467         OUTSTANDING
       
  2468         
       
  2469         DELAY           5000000
       
  2470         COMMAND         gavdp               Connect                     BT-GAVDP-PublishedPartner-Active-Master-0022-0001-Connect_Command29
       
  2471         OUTSTANDING
       
  2472         
       
  2473         COMMAND         remotesepinfo1      new
       
  2474         COMMAND         gavdp               DiscoverRemoteSEPs          BT-GAVDP-PublishedPartner-Active-Master-0022-0001-DiscoverRemoteSEPs_Command32
       
  2475         OUTSTANDING
       
  2476         
       
  2477         COMMAND         capnonsbc2          new                         BT-GAVDP-PublishedPartner-Active-Master-0022-0001-new_Command34
       
  2478         COMMAND   !AsyncError=-5   gavdp    GetRemoteSEPCapabilities    BT-GAVDP-PublishedPartner-Active-Master-0022-0001-GetRemoteSEPCapabilities_Command35
       
  2479         OUTSTANDING
       
  2480         
       
  2481         COMMAND         gavdp               Close
       
  2482         COMMAND         socketserv          Close
       
  2483         STORE           addrremote
       
  2484         STORE_ACTIVE_SCHEDULER
       
  2485     END_TEST_BLOCK
       
  2486     RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveSyncTestCaseResult
       
  2487 END_TESTCASE BT-GAVDP-PublishedPartner-Active-Master-0022
       
  2488 
       
  2489 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini RetrieveExecutionResultSamplesDatabasePassiveSlave
       
  2490 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StopTDService
       
  2491 RUN_TEST_STEP -1 UCCControlTE RunCommand \bluetooth\gavdp\ucc-control-channel-config.ini StopSyncService