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
5179aa1b
Commit
5179aa1b
authored
Jul 24, 2005
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get started testing ShellExecute().
parent
8759b5fe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
15 deletions
+42
-15
.cvsignore
dlls/shell32/tests/.cvsignore
+1
-0
Makefile.in
dlls/shell32/tests/Makefile.in
+1
-0
shell32_test.h
dlls/shell32/tests/shell32_test.h
+37
-0
shelllink.c
dlls/shell32/tests/shelllink.c
+3
-15
shlexec.c
dlls/shell32/tests/shlexec.c
+0
-0
No files found.
dlls/shell32/tests/.cvsignore
View file @
5179aa1b
...
...
@@ -2,6 +2,7 @@ Makefile
generated.ok
shelllink.ok
shellpath.ok
shlexec.ok
shlfileop.ok
shlfolder.ok
string.ok
...
...
dlls/shell32/tests/Makefile.in
View file @
5179aa1b
...
...
@@ -10,6 +10,7 @@ CTESTS = \
generated.c
\
shelllink.c
\
shellpath.c
\
shlexec.c
\
shlfileop.c
\
shlfolder.c
\
string.c
...
...
dlls/shell32/tests/shell32_test.h
0 → 100644
View file @
5179aa1b
/*
* Unit test suite for shell32 functions
*
* Copyright 2005 Francois Gougett for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* Helper function for creating .lnk files */
typedef
struct
{
const
char
*
description
;
const
char
*
workdir
;
const
char
*
path
;
LPITEMIDLIST
pidl
;
const
char
*
arguments
;
int
showcmd
;
const
char
*
icon
;
int
icon_id
;
WORD
hotkey
;
}
lnk_desc_t
;
#define create_lnk(a,b,c) create_lnk_(__LINE__, (a), (b), (c))
void
create_lnk_
(
int
,
const
WCHAR
*
,
lnk_desc_t
*
,
int
);
dlls/shell32/tests/shelllink.c
View file @
5179aa1b
...
...
@@ -33,6 +33,8 @@
#include "shlobj.h"
#include "wine/test.h"
#include "shell32_test.h"
static
const
WCHAR
lnkfile
[]
=
{
'C'
,
':'
,
'\\'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'l'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
notafile
[]
=
{
'C'
,
':'
,
'\\'
,
'n'
,
'o'
,
'n'
,
'e'
,
'x'
,
'i'
,
's'
,
't'
,
'e'
,
'n'
,
't'
,
'\\'
,
'f'
,
'i'
,
'l'
,
'e'
,
0
};
...
...
@@ -268,24 +270,10 @@ static void test_get_set(void)
* Test saving and loading .lnk files
*/
typedef
struct
{
const
char
*
description
;
const
char
*
workdir
;
const
char
*
path
;
LPITEMIDLIST
pidl
;
const
char
*
arguments
;
int
showcmd
;
const
char
*
icon
;
int
icon_id
;
WORD
hotkey
;
}
lnk_desc_t
;
#define lok ok_(__FILE__, line)
#define create_lnk(a,b,c) create_lnk_(__LINE__, (a), (b), (c))
#define check_lnk(a,b) check_lnk_(__LINE__, (a), (b))
static
void
create_lnk_
(
int
line
,
const
WCHAR
*
path
,
lnk_desc_t
*
desc
,
int
save_fails
)
void
create_lnk_
(
int
line
,
const
WCHAR
*
path
,
lnk_desc_t
*
desc
,
int
save_fails
)
{
HRESULT
r
;
IShellLinkA
*
sl
;
...
...
dlls/shell32/tests/shlexec.c
0 → 100644
View file @
5179aa1b
This diff is collapsed.
Click to expand it.
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