Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PContentPermission.cpp
Line
Count
Source (jump to first uncovered line)
1
//
2
// Automatically generated by ipdlc.
3
// Edit at your own risk
4
//
5
6
7
#include "mozilla/dom/PContentPermission.h"
8
9
10
//-----------------------------------------------------------------------------
11
// Method definitions for the IPDL type |struct PermissionRequest|
12
//
13
namespace mozilla {
14
namespace dom {
15
auto PermissionRequest::operator==(const PermissionRequest& _o) const -> bool
16
0
{
17
0
    if ((!((type()) == ((_o).type())))) {
18
0
        return false;
19
0
    }
20
0
    if ((!((access()) == ((_o).access())))) {
21
0
        return false;
22
0
    }
23
0
    if ((!((options()) == ((_o).options())))) {
24
0
        return false;
25
0
    }
26
0
    return true;
27
0
}
28
29
auto PermissionRequest::operator!=(const PermissionRequest& _o) const -> bool
30
0
{
31
0
    return (!(operator==(_o)));
32
0
}
33
34
} // namespace dom
35
} // namespace mozilla
36
37
namespace mozilla {
38
namespace ipc {
39
auto IPDLParamTraits<mozilla::dom::PermissionRequest>::Write(
40
        IPC::Message* aMsg,
41
        mozilla::ipc::IProtocol* aActor,
42
        const paramType& aVar) -> void
43
0
{
44
0
    WriteIPDLParam(aMsg, aActor, (aVar).type());
45
0
    // Sentinel = 'type'
46
0
    (aMsg)->WriteSentinel(2982068540);
47
0
    WriteIPDLParam(aMsg, aActor, (aVar).access());
48
0
    // Sentinel = 'access'
49
0
    (aMsg)->WriteSentinel(52582576);
50
0
    WriteIPDLParam(aMsg, aActor, (aVar).options());
51
0
    // Sentinel = 'options'
52
0
    (aMsg)->WriteSentinel(33222909);
53
0
}
54
55
auto IPDLParamTraits<mozilla::dom::PermissionRequest>::Read(
56
        const IPC::Message* aMsg,
57
        PickleIterator* aIter,
58
        mozilla::ipc::IProtocol* aActor,
59
        paramType* aVar) -> bool
60
0
{
61
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->type())))))) {
62
0
        (aActor)->FatalError("Error deserializing 'type' (nsCString) member of 'PermissionRequest'");
63
0
        return false;
64
0
    }
65
0
    // Sentinel = 'type'
66
0
    if ((!((aMsg)->ReadSentinel(aIter, 2982068540)))) {
67
0
        mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsCString) member of 'PermissionRequest'");
68
0
        return false;
69
0
    }
70
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->access())))))) {
71
0
        (aActor)->FatalError("Error deserializing 'access' (nsCString) member of 'PermissionRequest'");
72
0
        return false;
73
0
    }
74
0
    // Sentinel = 'access'
75
0
    if ((!((aMsg)->ReadSentinel(aIter, 52582576)))) {
76
0
        mozilla::ipc::SentinelReadError("Error deserializing 'access' (nsCString) member of 'PermissionRequest'");
77
0
        return false;
78
0
    }
79
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->options())))))) {
80
0
        (aActor)->FatalError("Error deserializing 'options' (nsString[]) member of 'PermissionRequest'");
81
0
        return false;
82
0
    }
83
0
    // Sentinel = 'options'
84
0
    if ((!((aMsg)->ReadSentinel(aIter, 33222909)))) {
85
0
        mozilla::ipc::SentinelReadError("Error deserializing 'options' (nsString[]) member of 'PermissionRequest'");
86
0
        return false;
87
0
    }
88
0
    return true;
89
0
}
90
91
} // namespace ipc
92
} // namespace mozilla
93
94
//-----------------------------------------------------------------------------
95
// Method definitions for the IPDL type |struct PermissionChoice|
96
//
97
namespace mozilla {
98
namespace dom {
99
auto PermissionChoice::operator==(const PermissionChoice& _o) const -> bool
100
0
{
101
0
    if ((!((type()) == ((_o).type())))) {
102
0
        return false;
103
0
    }
104
0
    if ((!((choice()) == ((_o).choice())))) {
105
0
        return false;
106
0
    }
107
0
    return true;
108
0
}
109
110
auto PermissionChoice::operator!=(const PermissionChoice& _o) const -> bool
111
0
{
112
0
    return (!(operator==(_o)));
113
0
}
114
115
} // namespace dom
116
} // namespace mozilla
117
118
namespace mozilla {
119
namespace ipc {
120
auto IPDLParamTraits<mozilla::dom::PermissionChoice>::Write(
121
        IPC::Message* aMsg,
122
        mozilla::ipc::IProtocol* aActor,
123
        const paramType& aVar) -> void
124
0
{
125
0
    WriteIPDLParam(aMsg, aActor, (aVar).type());
126
0
    // Sentinel = 'type'
127
0
    (aMsg)->WriteSentinel(2982068540);
128
0
    WriteIPDLParam(aMsg, aActor, (aVar).choice());
129
0
    // Sentinel = 'choice'
130
0
    (aMsg)->WriteSentinel(1920600143);
131
0
}
132
133
auto IPDLParamTraits<mozilla::dom::PermissionChoice>::Read(
134
        const IPC::Message* aMsg,
135
        PickleIterator* aIter,
136
        mozilla::ipc::IProtocol* aActor,
137
        paramType* aVar) -> bool
138
0
{
139
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->type())))))) {
140
0
        (aActor)->FatalError("Error deserializing 'type' (nsCString) member of 'PermissionChoice'");
141
0
        return false;
142
0
    }
143
0
    // Sentinel = 'type'
144
0
    if ((!((aMsg)->ReadSentinel(aIter, 2982068540)))) {
145
0
        mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsCString) member of 'PermissionChoice'");
146
0
        return false;
147
0
    }
148
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->choice())))))) {
149
0
        (aActor)->FatalError("Error deserializing 'choice' (nsString) member of 'PermissionChoice'");
150
0
        return false;
151
0
    }
152
0
    // Sentinel = 'choice'
153
0
    if ((!((aMsg)->ReadSentinel(aIter, 1920600143)))) {
154
0
        mozilla::ipc::SentinelReadError("Error deserializing 'choice' (nsString) member of 'PermissionChoice'");
155
0
        return false;
156
0
    }
157
0
    return true;
158
0
}
159
160
} // namespace ipc
161
} // namespace mozilla