Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/openlaunchd
Path: blob/master/liblaunch/test/liblaunch_test.h
374 views
1
/*
2
* Copyright (c) 2013 R. Tyler Croy, All rights reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
18
#ifndef _LIBLAUNCH_TEST_H_
19
#define _LIBLAUNCH_TEST_H_
20
21
#include <stdlib.h>
22
#include <stdarg.h>
23
#include <stddef.h>
24
#include <setjmp.h>
25
#include <cmocka.h>
26
27
#include "launch.h"
28
#include "byteswap.h"
29
#include <netinet/in.h>
30
31
/* byteswap.h */
32
void test_host2wire_64(void**);
33
void test_host2wire_32(void**);
34
void test_host2wire_16(void**);
35
void test_host2wire_8(void**);
36
37
void test_wire2host_64(void**);
38
void test_wire2host_32(void**);
39
void test_wire2host_16(void**);
40
void test_wire2host_8(void**);
41
42
/* getters.c */
43
void test_launch_data_get_errno_null(void**);
44
void test_launch_data_get_errno(void**);
45
void test_launch_data_get_fd_null(void**);
46
void test_launch_data_get_integer_null(void**);
47
void test_launch_data_get_integer(void**);
48
void test_launch_data_get_bool_default(void**);
49
void test_launch_data_get_bool_false(void**);
50
51
/* liblaunch.c */
52
void test_launch_init_globals(void**);
53
void test_launch_data_alloc(void**);
54
void test_launch_data_alloc_array(void**);
55
56
#endif
57
58