Jacek Caban
994976dcb3
rpcrt4/tests: Avoid type redefinition.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46680
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-07 17:57:59 +01:00
Jacek Caban
83b9438029
widl: Fix handling context handle return type in mixed mode.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-30 18:32:36 +01:00
Jacek Caban
78d75e4a22
rpcrt4/tests: Add context handle marshaling tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-25 23:09:08 +01:00
Jacek Caban
f634a84fda
rpcrt4/tests: Use --prefix-client to avoid duplicated function implementations.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-24 16:25:58 +01:00
Jacek Caban
d73a6bae08
rpcrt4/tests: Run RPC tests in both mixed and fully interpreted mode.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-23 17:42:44 +01:00
Sven Baars
ec921c2d15
rpcrt4/tests: Fix some memory leaks (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-16 17:15:09 +01:00
Francois Gouget
83d1f1a3be
rpcrt4/tests: Make create_server_process() static.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-10 10:05:53 +01:00
Zebediah Figura
f848d03f95
rpcrt4: Fix handling of FC_ALIGNM* directives.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-20 09:57:21 +01:00
Zebediah Figura
9a46a1fc9e
rpcrt4/tests: Add a test for FC_ALIGNM* directives.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-20 09:57:19 +01:00
Zebediah Figura
666bbe084e
rpcrt4: Avoid reference leaks when unmarshalling [in, out] pointers.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-02 15:18:00 +01:00
Zebediah Figura
b7cc627c6e
rpcrt4/tests: Add some tests for marshalling interface pointers.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-01 21:50:48 +01:00
Zebediah Figura
03be1605db
rpcrt4: Ignore fMustAlloc in PointerUnmarshall().
...
Use our own heuristics to decide whether we, or the inner routine, must
allocate.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-30 19:00:35 +01:00
Jacek Caban
cae3d28a9b
rpcrt4/tests: Add a test of client reconnecting on send failure.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:33:42 +02:00
Jacek Caban
8a48621fc9
rpcrt4: Add RpcExceptionFilter implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:33:42 +02:00
Jacek Caban
d6c94be74d
rpcrt4/tests: Get rid of no longer needed win9x checks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:33:38 +02:00
Zebediah Figura
5fae77e4db
rpcrt4: Unmarshal into a stack pointer on the server side if possible.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 10:01:20 +02:00
Zebediah Figura
3efe54f66d
rpcrt4/tests: Add more tests for NdrPointerUnmarshall() and NdrPointerFree() on the server side.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 10:01:18 +02:00
Zebediah Figura
f95777e134
rpcrt4/tests: Test that NdrPointerFree() doesn't free stack pointers.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 10:01:17 +02:00
Zebediah Figura
99672dbe91
rpcrt4/tests: Use publicly defined NDR constants.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 10:01:15 +02:00
Zebediah Figura
935eed8e98
rpcrt4/tests: Add some tests for nesting arrays and pointers.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-09 12:28:39 +02:00
Zebediah Figura
904d1688a3
ole32: Use the real proxy IID in ClientRpcChannelBuffer_GetBuffer().
...
Delegated proxies pass the IID of the parent interface to
NdrProxyGetBuffer(). However, this interface was never registered with ole32
on the server side, so calls to delegated methods will return
RPC_S_UNKNOWN_IF. Therefore we have ole32 ignore the passed-in parameter and
use the real proxy ID.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45673
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-17 15:37:41 +02:00
Zebediah Figura
b82382f5fe
rpcrt4/tests: Add tests for delegated proxy methods.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-17 15:37:30 +02:00
Michael Stefaniuc
cc906096c3
rpcrt4/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 11:41:59 +02:00
Zebediah Figura
950b349885
rpcrt4: RpcServerUnregisterIf() with NULL ifspec shouldn't unregister auto-listen interfaces.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-07 12:03:03 +02:00
Zebediah Figura
9d6d2eb3ce
rpcrt4/tests: Add a basic test for RPC_IF_AUTOLISTEN.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-07 12:03:00 +02:00
Zebediah Figura
e41209f228
rpcrt4: Dereference interface pointers in union arms.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-12 13:20:36 +02:00
Alistair Leslie-Hughes
a5767fc1f3
rpcrt4/tests: Use standard wine_dbgstr_longlong.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-27 10:46:58 +02:00
Jacek Caban
18fb5d25f1
rpcrt4/tests: Added more server stopping tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-31 21:33:40 +02:00
Nikolay Sivov
dcdf7d6f6d
rpcrt4/tests: Added missing assignment (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-15 11:11:19 +02:00
Jacek Caban
9a6781f8c9
rpcrt4/tests: Added more server listening tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-16 15:03:57 +01:00
Jacek Caban
d0ed6d1035
rpcrt4: Get rid of manual_listen_count and use binary state instead.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-16 15:03:54 +01:00
Hans Leidekker
b621973c47
rpcrt4/tests: Also register a firewall exception for the rpc test.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-08 13:53:09 +01:00
Hans Leidekker
dd62188627
rpcrt4/tests: Merge rpc_protseq.c into rpc.c.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-08 13:52:59 +01:00
Hans Leidekker
462d348e8d
rpcrt4/tests: Register an exception with the firewall to avoid a dialog.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-06 15:02:35 +01:00
Hans Leidekker
f8450fae23
rpcrt4: Handle NULL binding in RpcBindingInqAuthClient{,Ex}.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-22 16:31:52 +01:00
Huw Davies
eb3ceac1dd
rpcrt4/tests: Register the proxies to fix a crash on Windows 8 and 10.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 19:44:13 +01:00
Huw Davies
f4d598ae08
rpcrt4/tests: Extend the tests for NdrDllGetClassObject().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 19:44:10 +01:00
Christoph von Wittich
01290cdc1f
rpcrt4: Implement RpcBindingServerFromClient and populate NetworkAddr for each transport.
...
Add more thorough testing for this function.
Signed-off-by: Colin Finck <mail@colinfinck.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-19 09:44:01 -07:00
Huw Davies
f53c320f04
rpcrt4/tests: Win 8 and 10 do not correctly unmarshal a ranged enum16.
...
In practice this bug is not observed since midl, unlike widl, does not
generate ranges in inline stub mode. For interpreted stubs, where
midl does generate ranges, the [out] parameters are zero-initialised
by the runtime.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 00:34:25 +09:00
Huw Davies
76ddf58c44
rpcrt4/tests: Mark Win 8.1 behaviour of UuidCreateSequential() as broken.
...
Some versions of Win 8.1 provide a randomised node ID (with the
multicast bit set) but return S_OK instead of RPC_S_UUID_LOCAL_ONLY.
This is despite having access to a valid MAC address.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:27:13 +09:00
Huw Davies
225c43b812
rpcrt4/tests: Remove an unnecessary and confusing message.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:17:14 +09:00
Jacek Caban
ffe01b33f1
rpcrt4/tests: Don't load GetUserNameEx dynamically.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 11:43:22 +09:00
Colin Finck
b59c53fbff
rpcrt4: Add a test for RpcBindingServerFromClient (todo_wine).
...
Signed-off-by: Colin Finck <mail@colinfinck.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:47:18 +09:00
Nikolay Sivov
6ac3c09a76
rpcrt4/tests: Fix indentation warning on GCC 6.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 22:22:39 +09:00
Jacek Caban
3b6cb60ea6
rpcrt4: Added RpcServerRegisterAuthInfoW failure test.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:54:18 +09:00
Jacek Caban
f3f07bdf35
rpcrt4: Added RpcMgmtIsServerListening tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 12:45:02 +09:00
Gerald Pfeifer
e6ca322fb1
rpcrt4/tests: Cast to ULONGLONG instead of LONGLONG to avoid shift overflow.
2015-09-04 16:15:00 +09:00
Huw Davies
76dc3b64ae
rpcrt4: Set CorrDespIncrement to the size of the (non-range) /robust payload.
...
fHasNewCorrDesc is only set on older versions of Windows that don't
set CorrDespIncrement, but it can't hurt to continue to set it.
2015-07-13 22:11:17 +09:00
Huw Davies
6518b72889
rpcrt4: Initialize CorrDespIncrement to zero and mark the pre-Vista behaviour as broken.
2015-07-13 22:11:12 +09:00
Huw Davies
9f2c668c99
rpcrt4/tests: Fix some tests on Win 8.
2015-04-24 14:29:28 +09:00