xref: /btstack/test/hfp/test_sequences.h (revision dc5611fddefa948cedb447d9bfd1d551e6e657f0)
1*dc5611fdSMilanka Ringwald /*
2*dc5611fdSMilanka Ringwald  * Copyright (C) 2014 BlueKitchen GmbH
3*dc5611fdSMilanka Ringwald  *
4*dc5611fdSMilanka Ringwald  * Redistribution and use in source and binary forms, with or without
5*dc5611fdSMilanka Ringwald  * modification, are permitted provided that the following conditions
6*dc5611fdSMilanka Ringwald  * are met:
7*dc5611fdSMilanka Ringwald  *
8*dc5611fdSMilanka Ringwald  * 1. Redistributions of source code must retain the above copyright
9*dc5611fdSMilanka Ringwald  *    notice, this list of conditions and the following disclaimer.
10*dc5611fdSMilanka Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
11*dc5611fdSMilanka Ringwald  *    notice, this list of conditions and the following disclaimer in the
12*dc5611fdSMilanka Ringwald  *    documentation and/or other materials provided with the distribution.
13*dc5611fdSMilanka Ringwald  * 3. Neither the name of the copyright holders nor the names of
14*dc5611fdSMilanka Ringwald  *    contributors may be used to endorse or promote products derived
15*dc5611fdSMilanka Ringwald  *    from this software without specific prior written permission.
16*dc5611fdSMilanka Ringwald  * 4. Any redistribution, use, or modification is done solely for
17*dc5611fdSMilanka Ringwald  *    personal benefit and not for any commercial purpose or for
18*dc5611fdSMilanka Ringwald  *    monetary gain.
19*dc5611fdSMilanka Ringwald  *
20*dc5611fdSMilanka Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21*dc5611fdSMilanka Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*dc5611fdSMilanka Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23*dc5611fdSMilanka Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS
24*dc5611fdSMilanka Ringwald  * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25*dc5611fdSMilanka Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26*dc5611fdSMilanka Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27*dc5611fdSMilanka Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28*dc5611fdSMilanka Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29*dc5611fdSMilanka Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30*dc5611fdSMilanka Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*dc5611fdSMilanka Ringwald  * SUCH DAMAGE.
32*dc5611fdSMilanka Ringwald  *
33*dc5611fdSMilanka Ringwald  * Please inquire about commercial licensing options at
34*dc5611fdSMilanka Ringwald  * [email protected]
35*dc5611fdSMilanka Ringwald  *
36*dc5611fdSMilanka Ringwald  */
37*dc5611fdSMilanka Ringwald 
38*dc5611fdSMilanka Ringwald // *****************************************************************************
39*dc5611fdSMilanka Ringwald //
40*dc5611fdSMilanka Ringwald // HFP Test Sequences
41*dc5611fdSMilanka Ringwald //
42*dc5611fdSMilanka Ringwald // *****************************************************************************
43*dc5611fdSMilanka Ringwald 
44*dc5611fdSMilanka Ringwald #include <stdint.h>
45*dc5611fdSMilanka Ringwald #include <stdio.h>
46*dc5611fdSMilanka Ringwald #include <stdlib.h>
47*dc5611fdSMilanka Ringwald #include <string.h>
48*dc5611fdSMilanka Ringwald 
49*dc5611fdSMilanka Ringwald typedef struct hfp_test_item{
50*dc5611fdSMilanka Ringwald     char ** test;
51*dc5611fdSMilanka Ringwald     int len;
52*dc5611fdSMilanka Ringwald } hfp_test_item_t;
53*dc5611fdSMilanka Ringwald 
54*dc5611fdSMilanka Ringwald 
55*dc5611fdSMilanka Ringwald /* Service Level Connection (slc) test sequences */
56*dc5611fdSMilanka Ringwald hfp_test_item_t * hfp_slc_tests();
57*dc5611fdSMilanka Ringwald int slc_tests_size();
58*dc5611fdSMilanka Ringwald char ** default_slc_setup();
59*dc5611fdSMilanka Ringwald int default_slc_setup_size();
60*dc5611fdSMilanka Ringwald 
61*dc5611fdSMilanka Ringwald /* Service Level Connection (slc) common commands */
62*dc5611fdSMilanka Ringwald hfp_test_item_t * hfp_slc_cmds_tests();
63*dc5611fdSMilanka Ringwald 
64*dc5611fdSMilanka Ringwald /* Codecs Connection (cc) test sequences */
65*dc5611fdSMilanka Ringwald hfp_test_item_t * hfp_cc_tests();
66*dc5611fdSMilanka Ringwald int cc_tests_size();
67*dc5611fdSMilanka Ringwald char ** default_cc_setup();
68*dc5611fdSMilanka Ringwald int default_cc_setup_size();
69*dc5611fdSMilanka Ringwald 
70