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