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
90bd7408
Commit
90bd7408
authored
Aug 14, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add test for RpcBindingToStringBindingA.
parent
f5af8f61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
rpc.c
dlls/rpcrt4/tests/rpc.c
+30
-0
No files found.
dlls/rpcrt4/tests/rpc.c
View file @
90bd7408
...
...
@@ -722,6 +722,35 @@ static void test_endpoint_mapper(void)
ok
(
status
==
RPC_S_OK
,
"RpcBindingVectorFree failed with error %lu
\n
"
,
status
);
}
static
void
test_RpcStringBindingFromBinding
(
void
)
{
static
unsigned
char
ncacn_np
[]
=
"ncacn_np"
;
static
unsigned
char
address
[]
=
"."
;
static
unsigned
char
endpoint
[]
=
"
\\
pipe
\\
wine_rpc_test"
;
RPC_STATUS
status
;
handle_t
handle
;
RPC_CSTR
binding
;
status
=
RpcStringBindingCompose
(
NULL
,
ncacn_np
,
address
,
endpoint
,
NULL
,
&
binding
);
ok
(
status
==
RPC_S_OK
,
"RpcStringBindingCompose failed (%lu)
\n
"
,
status
);
status
=
RpcBindingFromStringBinding
(
binding
,
&
handle
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingFromStringBinding failed (%lu)
\n
"
,
status
);
RpcStringFree
(
&
binding
);
status
=
RpcBindingToStringBinding
(
handle
,
&
binding
);
ok
(
status
==
RPC_S_OK
,
"RpcStringBindingFromBinding failed with error %lu
\n
"
,
status
);
todo_wine
ok
(
!
strcmp
((
const
char
*
)
binding
,
"ncacn_np:.[
\\\\
pipe
\\\\
wine_rpc_test]"
),
"binding string didn't match what was expected:
\"
%s
\"\n
"
,
binding
);
RpcStringFree
(
&
binding
);
status
=
RpcBindingFree
(
&
handle
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingFree failed with error %lu
\n
"
,
status
);
}
START_TEST
(
rpc
)
{
trace
(
" ** Uuid Conversion and Comparison Tests **
\n
"
);
...
...
@@ -734,4 +763,5 @@ START_TEST( rpc )
test_RpcStringBindingParseA
();
test_I_RpcExceptionFilter
();
test_endpoint_mapper
();
test_RpcStringBindingFromBinding
();
}
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