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
1a978cb4
Commit
1a978cb4
authored
Jun 25, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add tests for endpoint mapper functions.
parent
45a3462c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
rpc.c
dlls/rpcrt4/tests/rpc.c
+47
-0
No files found.
dlls/rpcrt4/tests/rpc.c
View file @
1a978cb4
...
...
@@ -676,6 +676,52 @@ static void test_I_RpcExceptionFilter(void)
}
}
static
void
test_endpoint_mapper
(
void
)
{
static
unsigned
char
annotation
[]
=
"Test annotation string."
;
static
unsigned
char
ncacn_ip_tcp
[]
=
"ncacn_np"
;
static
unsigned
char
address
[]
=
"."
;
static
unsigned
char
endpoint
[]
=
"
\\
pipe
\\
wine_rpc_test"
;
RPC_STATUS
status
;
RPC_BINDING_VECTOR
*
binding_vector
;
handle_t
handle
;
unsigned
char
*
binding
;
status
=
RpcServerUseProtseqEp
(
ncacn_ip_tcp
,
20
,
endpoint
,
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcServerUseProtseqEp failed (%lu)
\n
"
,
status
);
status
=
RpcServerRegisterIf
(
IFoo_v0_0_s_ifspec
,
NULL
,
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcServerRegisterIf failed (%lu)
\n
"
,
status
);
status
=
RpcServerInqBindings
(
&
binding_vector
);
ok
(
status
==
RPC_S_OK
,
"RpcServerInqBindings failed with error %lu
\n
"
,
status
);
status
=
RpcEpRegisterA
(
IFoo_v0_0_s_ifspec
,
binding_vector
,
NULL
,
annotation
);
ok
(
status
==
RPC_S_OK
,
"RpcEpRegisterA failed with error %lu
\n
"
,
status
);
status
=
RpcStringBindingCompose
(
NULL
,
ncacn_ip_tcp
,
address
,
NULL
,
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
);
status
=
RpcEpResolveBinding
(
handle
,
IFoo_v0_0_s_ifspec
);
ok
(
status
==
RPC_S_OK
,
"RpcEpResolveBinding failed with error %lu
\n
"
,
status
);
status
=
RpcBindingFree
(
&
handle
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingFree failed with error %lu
\n
"
,
status
);
status
=
RpcServerUnregisterIf
(
NULL
,
NULL
,
FALSE
);
ok
(
status
==
RPC_S_OK
,
"RpcServerUnregisterIf failed (%lu)
\n
"
,
status
);
status
=
RpcEpUnregister
(
IFoo_v0_0_s_ifspec
,
binding_vector
,
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcEpUnregisterA failed with error %lu
\n
"
,
status
);
status
=
RpcBindingVectorFree
(
&
binding_vector
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingVectorFree failed with error %lu
\n
"
,
status
);
}
START_TEST
(
rpc
)
{
trace
(
" ** Uuid Conversion and Comparison Tests **
\n
"
);
...
...
@@ -687,4 +733,5 @@ START_TEST( rpc )
test_I_RpcMapWin32Status
();
test_RpcStringBindingParseA
();
test_I_RpcExceptionFilter
();
test_endpoint_mapper
();
}
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