cef_sys/
lib.rs

1#[allow(
2    non_snake_case,
3    non_camel_case_types,
4    non_upper_case_globals,
5    dead_code,
6    clippy::all
7)]
8mod bindings;
9
10use std::ptr::null_mut;
11
12pub use bindings::*;
13
14impl Default for _cef_string_utf16_t {
15    fn default() -> Self {
16        Self {
17            str_: null_mut(),
18            length: 0,
19            dtor: None,
20        }
21    }
22}
23
24impl Default for cef_log_severity_t {
25    fn default() -> Self {
26        Self::LOGSEVERITY_DEFAULT
27    }
28}
29
30impl Default for cef_log_items_t {
31    fn default() -> Self {
32        Self::LOG_ITEMS_DEFAULT
33    }
34}
35
36#[test]
37fn test_init() {
38    use std::ptr::*;
39
40    unsafe {
41        assert_eq!(cef_initialize(null(), null(), null_mut(), null_mut()), 0);
42    };
43}