Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a345f985
Commit
a345f985
authored
Jul 21, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Use nameless unions/structs.
parent
6474ceb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
42 deletions
+42
-42
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+42
-42
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
a345f985
...
...
@@ -2760,21 +2760,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %lu instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U1
(
umi
)
.
Level1
.
Buffer
==
buffer
+
15
,
ok
(
umi
.
Level1
.
Buffer
==
buffer
+
15
,
"umi.Level1.Buffer was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
Buffer
,
buffer
);
ok
(
U1
(
umi
)
.
Level1
.
BufferSize
==
1
,
umi
.
Level1
.
Buffer
,
buffer
);
ok
(
umi
.
Level1
.
BufferSize
==
1
,
"umi.Level1.BufferSize was %lu instead of 1
\n
"
,
U1
(
umi
)
.
Level1
.
BufferSize
);
ok
(
U1
(
umi
)
.
Level1
.
pfnAllocate
==
my_alloc
,
umi
.
Level1
.
BufferSize
);
ok
(
umi
.
Level1
.
pfnAllocate
==
my_alloc
,
"umi.Level1.pfnAllocate was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U1
(
umi
)
.
Level1
.
pfnFree
==
my_free
,
umi
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
umi
.
Level1
.
pfnFree
==
my_free
,
"umi.Level1.pfnFree was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnFree
,
my_free
);
ok
(
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
umi
.
Level1
.
pfnFree
,
my_free
);
ok
(
umi
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"umi.Level1.pRpcChannelBuffer was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
umi
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* buffer size */
...
...
@@ -2794,21 +2794,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %lu instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U1
(
umi
)
.
Level1
.
Buffer
==
NULL
,
ok
(
umi
.
Level1
.
Buffer
==
NULL
,
"umi.Level1.Buffer was %p instead of NULL
\n
"
,
U1
(
umi
)
.
Level1
.
Buffer
);
ok
(
U1
(
umi
)
.
Level1
.
BufferSize
==
0
,
umi
.
Level1
.
Buffer
);
ok
(
umi
.
Level1
.
BufferSize
==
0
,
"umi.Level1.BufferSize was %lu instead of 0
\n
"
,
U1
(
umi
)
.
Level1
.
BufferSize
);
ok
(
U1
(
umi
)
.
Level1
.
pfnAllocate
==
my_alloc
,
umi
.
Level1
.
BufferSize
);
ok
(
umi
.
Level1
.
pfnAllocate
==
my_alloc
,
"umi.Level1.pfnAllocate was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U1
(
umi
)
.
Level1
.
pfnFree
==
my_free
,
umi
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
umi
.
Level1
.
pfnFree
==
my_free
,
"umi.Level1.pfnFree was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnFree
,
my_free
);
ok
(
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
umi
.
Level1
.
pfnFree
,
my_free
);
ok
(
umi
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"umi.Level1.pRpcChannelBuffer was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
umi
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* marshall */
...
...
@@ -2828,21 +2828,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %lu instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U1
(
umi
)
.
Level1
.
Buffer
==
buffer
+
15
,
ok
(
umi
.
Level1
.
Buffer
==
buffer
+
15
,
"umi.Level1.Buffer was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
Buffer
,
buffer
);
ok
(
U1
(
umi
)
.
Level1
.
BufferSize
==
1
,
umi
.
Level1
.
Buffer
,
buffer
);
ok
(
umi
.
Level1
.
BufferSize
==
1
,
"umi.Level1.BufferSize was %lu instead of 1
\n
"
,
U1
(
umi
)
.
Level1
.
BufferSize
);
ok
(
U1
(
umi
)
.
Level1
.
pfnAllocate
==
my_alloc
,
umi
.
Level1
.
BufferSize
);
ok
(
umi
.
Level1
.
pfnAllocate
==
my_alloc
,
"umi.Level1.pfnAllocate was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U1
(
umi
)
.
Level1
.
pfnFree
==
my_free
,
umi
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
umi
.
Level1
.
pfnFree
==
my_free
,
"umi.Level1.pfnFree was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnFree
,
my_free
);
ok
(
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
umi
.
Level1
.
pfnFree
,
my_free
);
ok
(
umi
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"umi.Level1.pRpcChannelBuffer was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
umi
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* free */
...
...
@@ -2862,21 +2862,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %lu instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U1
(
umi
)
.
Level1
.
Buffer
==
NULL
,
ok
(
umi
.
Level1
.
Buffer
==
NULL
,
"umi.Level1.Buffer was %p instead of NULL
\n
"
,
U1
(
umi
)
.
Level1
.
Buffer
);
ok
(
U1
(
umi
)
.
Level1
.
BufferSize
==
0
,
umi
.
Level1
.
Buffer
);
ok
(
umi
.
Level1
.
BufferSize
==
0
,
"umi.Level1.BufferSize was %lu instead of 0
\n
"
,
U1
(
umi
)
.
Level1
.
BufferSize
);
ok
(
U1
(
umi
)
.
Level1
.
pfnAllocate
==
my_alloc
,
umi
.
Level1
.
BufferSize
);
ok
(
umi
.
Level1
.
pfnAllocate
==
my_alloc
,
"umi.Level1.pfnAllocate was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U1
(
umi
)
.
Level1
.
pfnFree
==
my_free
,
umi
.
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
umi
.
Level1
.
pfnFree
==
my_free
,
"umi.Level1.pfnFree was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pfnFree
,
my_free
);
ok
(
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
umi
.
Level1
.
pfnFree
,
my_free
);
ok
(
umi
.
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"umi.Level1.pRpcChannelBuffer was %p instead of %p
\n
"
,
U1
(
umi
)
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
umi
.
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* boundary test */
...
...
@@ -2891,9 +2891,9 @@ static void test_NdrGetUserMarshalInfo(void)
status
=
NdrGetUserMarshalInfo
(
&
umcb
.
Flags
,
1
,
&
umi
);
ok
(
status
==
RPC_S_OK
,
"NdrGetUserMarshalInfo failed with error %ld
\n
"
,
status
);
ok
(
U1
(
umi
)
.
Level1
.
BufferSize
==
0
,
ok
(
umi
.
Level1
.
BufferSize
==
0
,
"umi.Level1.BufferSize was %lu instead of 0
\n
"
,
U1
(
umi
)
.
Level1
.
BufferSize
);
umi
.
Level1
.
BufferSize
);
/* error conditions */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment