Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
75197bdf
Commit
75197bdf
authored
Apr 07, 2010
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Add NdrDllRegisterProxy tests.
parent
0e09ade1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
cstub.c
dlls/rpcrt4/tests/cstub.c
+64
-0
No files found.
dlls/rpcrt4/tests/cstub.c
View file @
75197bdf
...
...
@@ -1089,6 +1089,69 @@ static void test_delegating_Invoke(IPSFactoryBuffer *ppsf)
HeapFree
(
GetProcessHeap
(),
0
,
msg
.
Buffer
);
IRpcStubBuffer_Release
(
pstub
);
}
static
const
CInterfaceProxyVtbl
*
cstub_ProxyVtblList2
[]
=
{
NULL
};
static
const
CInterfaceStubVtbl
*
cstub_StubVtblList2
[]
=
{
NULL
};
static
PCInterfaceName
const
if_name_list2
[]
=
{
NULL
};
static
const
IID
*
base_iid_list2
[]
=
{
NULL
,
};
static
const
ExtendedProxyFileInfo
my_proxy_file_info2
=
{
(
const
PCInterfaceProxyVtblList
*
)
&
cstub_ProxyVtblList2
,
(
const
PCInterfaceStubVtblList
*
)
&
cstub_StubVtblList2
,
(
const
PCInterfaceName
*
)
&
if_name_list2
,
(
const
IID
**
)
&
base_iid_list2
,
&
iid_lookup
,
0
,
1
,
NULL
,
0
,
0
,
0
};
static
const
ProxyFileInfo
*
proxy_file_list2
[]
=
{
&
my_proxy_file_info2
,
NULL
};
static
void
test_NdrDllRegisterProxy
(
void
)
{
HRESULT
res
;
const
ExtendedProxyFileInfo
*
pf
;
HMODULE
hmod
=
GetModuleHandleA
(
NULL
);
res
=
NdrDllRegisterProxy
(
NULL
,
NULL
,
NULL
);
ok
(
res
==
E_HANDLE
,
"Incorrect return code %x
\n
"
,
res
);
pf
=
NULL
;
res
=
NdrDllRegisterProxy
(
hmod
,
&
pf
,
NULL
);
ok
(
res
==
E_NOINTERFACE
,
"Incorrect return code %x
\n
"
,
res
);
res
=
NdrDllRegisterProxy
(
hmod
,
proxy_file_list2
,
NULL
);
ok
(
res
==
E_NOINTERFACE
,
"Incorrect return code %x
\n
"
,
res
);
/* This fails on Vista and Windows 7 due to permissions */
res
=
NdrDllRegisterProxy
(
hmod
,
proxy_file_list
,
NULL
);
ok
(
res
==
S_OK
||
res
==
E_ACCESSDENIED
,
"NdrDllRegisterProxy failed %x
\n
"
,
res
);
if
(
res
==
S_OK
)
{
res
=
NdrDllUnregisterProxy
(
hmod
,
proxy_file_list
,
NULL
);
ok
(
res
==
S_OK
,
"NdrDllUnregisterProxy failed %x
\n
"
,
res
);
}
}
START_TEST
(
cstub
)
{
...
...
@@ -1104,6 +1167,7 @@ START_TEST( cstub )
test_Disconnect
(
ppsf
);
test_Release
(
ppsf
);
test_delegating_Invoke
(
ppsf
);
test_NdrDllRegisterProxy
();
OleUninitialize
();
}
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