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
7c5f411e
Commit
7c5f411e
authored
Aug 22, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Aug 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implemented CreateTrigger.
parent
5915b497
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
task.c
dlls/mstask/task.c
+2
-2
task.c
dlls/mstask/tests/task.c
+1
-1
task_trigger.c
dlls/mstask/tests/task_trigger.c
+7
-10
No files found.
dlls/mstask/task.c
View file @
7c5f411e
...
...
@@ -94,8 +94,8 @@ static HRESULT WINAPI MSTASK_ITask_CreateTrigger(
WORD
*
piNewTrigger
,
ITaskTrigger
**
ppTrigger
)
{
FIXME
(
"(%p, %p, %p): stub
\n
"
,
iface
,
piNewTrigger
,
ppTrigger
);
return
E_NOTIMPL
;
TRACE
(
"(%p, %p, %p)
\n
"
,
iface
,
piNewTrigger
,
ppTrigger
);
return
TaskTriggerConstructor
((
LPVOID
*
)
ppTrigger
)
;
}
static
HRESULT
WINAPI
MSTASK_ITask_DeleteTrigger
(
...
...
dlls/mstask/tests/task.c
View file @
7c5f411e
...
...
@@ -218,7 +218,7 @@ static void test_CreateTrigger(void)
}
hres
=
ITask_CreateTrigger
(
test_task
,
&
trigger_index
,
&
test_trigger
);
todo_wine
ok
(
hres
==
S_OK
,
"Failed to create trigger: 0x%08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"Failed to create trigger: 0x%08x
\n
"
,
hres
);
if
(
hres
!=
S_OK
)
{
cleanup_task
();
...
...
dlls/mstask/tests/task_trigger.c
View file @
7c5f411e
...
...
@@ -66,7 +66,7 @@ static void cleanup_trigger(void)
static
BOOL
compare_trigger_state
(
TASK_TRIGGER
found_state
,
TASK_TRIGGER
expected_state
)
{
todo_wine
ok
(
found_state
.
cbTriggerSize
==
expected_state
.
cbTriggerSize
,
ok
(
found_state
.
cbTriggerSize
==
expected_state
.
cbTriggerSize
,
"cbTriggerSize: Found %d but expected %d
\n
"
,
found_state
.
cbTriggerSize
,
expected_state
.
cbTriggerSize
);
...
...
@@ -162,7 +162,7 @@ static void test_SetTrigger_GetTrigger(void)
SYSTEMTIME
time
;
setup
=
setup_trigger
();
todo_wine
ok
(
setup
,
"Failed to setup test_task
\n
"
);
ok
(
setup
,
"Failed to setup test_task
\n
"
);
if
(
!
setup
)
{
skip
(
"Failed to create task. Skipping tests.
\n
"
);
...
...
@@ -182,8 +182,7 @@ static void test_SetTrigger_GetTrigger(void)
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
todo_wine
ok
(
hres
==
S_OK
,
"Failed to set trigger: 0x%08x
\n
"
,
hres
);
todo_wine
ok
(
compare_trigger_state
(
trigger_state
,
empty_trigger_state
),
"Invalid state
\n
"
);
compare_trigger_state
(
trigger_state
,
empty_trigger_state
);
/* Test setting basic empty trigger */
hres
=
ITaskTrigger_SetTrigger
(
test_trigger
,
&
empty_trigger_state
);
...
...
@@ -192,8 +191,7 @@ static void test_SetTrigger_GetTrigger(void)
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
todo_wine
ok
(
hres
==
S_OK
,
"Failed to GetTrigger
\n
"
);
todo_wine
ok
(
compare_trigger_state
(
trigger_state
,
empty_trigger_state
),
"Invalid state
\n
"
);
compare_trigger_state
(
trigger_state
,
empty_trigger_state
);
/* Test setting basic non-empty trigger */
hres
=
ITaskTrigger_SetTrigger
(
test_trigger
,
&
normal_trigger_state
);
...
...
@@ -202,8 +200,7 @@ static void test_SetTrigger_GetTrigger(void)
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
todo_wine
ok
(
hres
==
S_OK
,
"Failed to GetTrigger
\n
"
);
todo_wine
ok
(
compare_trigger_state
(
trigger_state
,
normal_trigger_state
),
"Invalid state
\n
"
);
compare_trigger_state
(
trigger_state
,
normal_trigger_state
);
/* The following tests modify the normal_trigger_state structure
* before each test, and return the normal_trigger_state structure
...
...
@@ -331,10 +328,10 @@ static void test_SetTrigger_GetTrigger(void)
memset
(
&
trigger_state
,
0xcf
,
sizeof
(
trigger_state
));
trigger_state
.
cbTriggerSize
=
sizeof
(
trigger_state
);
hres
=
ITaskTrigger_GetTrigger
(
test_trigger
,
&
trigger_state
);
todo_wine
ok
(
trigger_state
.
Type
.
Weekly
.
WeeksInterval
==
0xcfcf
,
ok
(
trigger_state
.
Type
.
Weekly
.
WeeksInterval
==
0xcfcf
,
"Expected WeeksInterval set remain untouched: %d
\n
"
,
trigger_state
.
Type
.
Weekly
.
WeeksInterval
);
todo_wine
ok
(
trigger_state
.
Type
.
Weekly
.
rgfDaysOfTheWeek
==
0xcfcf
,
ok
(
trigger_state
.
Type
.
Weekly
.
rgfDaysOfTheWeek
==
0xcfcf
,
"Expected WeeksInterval set remain untouched: %d
\n
"
,
trigger_state
.
Type
.
Weekly
.
rgfDaysOfTheWeek
);
normal_trigger_state
.
TriggerType
=
TASK_TIME_TRIGGER_DAILY
;
...
...
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