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
3006cea8
Commit
3006cea8
authored
Dec 05, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion/tests: Add tests for CreateAssemblyCacheItem.
parent
20cec939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
asmcache.c
dlls/fusion/tests/asmcache.c
+38
-0
No files found.
dlls/fusion/tests/asmcache.c
View file @
3006cea8
...
...
@@ -881,6 +881,43 @@ static void test_CreateAssemblyCache(void)
IAssemblyCache_Release
(
cache
);
}
static
void
test_CreateAssemblyCacheItem
(
void
)
{
IAssemblyCache
*
cache
;
IAssemblyCacheItem
*
item
;
HRESULT
hr
;
static
const
WCHAR
wine
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
hr
=
pCreateAssemblyCache
(
&
cache
,
0
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
hr
=
IAssemblyCache_CreateAssemblyCacheItem
(
cache
,
0
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
hr
=
IAssemblyCache_CreateAssemblyCacheItem
(
cache
,
0
,
NULL
,
&
item
,
NULL
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
IAssemblyCacheItem_Release
(
item
);
hr
=
IAssemblyCache_CreateAssemblyCacheItem
(
cache
,
0
,
NULL
,
&
item
,
wine
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
IAssemblyCacheItem_Release
(
item
);
hr
=
IAssemblyCache_CreateAssemblyCacheItem
(
cache
,
1
,
(
void
*
)
0xdeadbeef
,
&
item
,
NULL
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
IAssemblyCacheItem_Release
(
item
);
hr
=
IAssemblyCache_CreateAssemblyCacheItem
(
cache
,
1
,
NULL
,
&
item
,
NULL
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
IAssemblyCacheItem_Release
(
item
);
hr
=
IAssemblyCache_CreateAssemblyCacheItem
(
cache
,
0
,
(
void
*
)
0xdeadbeef
,
&
item
,
NULL
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
IAssemblyCacheItem_Release
(
item
);
IAssemblyCache_Release
(
cache
);
}
static
void
test_InstallAssembly
(
void
)
{
IAssemblyCache
*
cache
;
...
...
@@ -1550,6 +1587,7 @@ START_TEST(asmcache)
return
;
test_CreateAssemblyCache
();
test_CreateAssemblyCacheItem
();
test_InstallAssembly
();
test_QueryAssemblyInfo
();
}
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