Removed W->A from DEFWND_ImmIsUIMessageW.
[wine] / dlls / urlmon / tests / url.c
1 /*
2  * UrlMon URL tests
3  *
4  * Copyright 2004 Kevin Koltzau
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include <stdarg.h>
22
23 #define COBJMACROS
24
25 #include "windef.h"
26 #include "winbase.h"
27 #include "urlmon.h"
28
29 #include "wine/test.h"
30
31 const WCHAR TEST_URL_1[] = {'h','t','t','p',':','/','/','w','w','w','.','w','i','n','e','h','q','.','o','r','g','/','\0'};
32 const WCHAR TEST_PART_URL_1[] = {'/','t','e','s','t','/','\0'};
33
34 static void test_CreateURLMoniker(LPCWSTR url1, LPCWSTR url2)
35 {
36     HRESULT hr;
37     IMoniker *mon1 = NULL;
38     IMoniker *mon2 = NULL;
39
40     hr = CreateURLMoniker(NULL, url1, &mon1);
41     ok(SUCCEEDED(hr), "failed to create moniker: 0x%08lx\n", hr);
42     if(SUCCEEDED(hr)) {
43         hr = CreateURLMoniker(mon1, url2, &mon2);
44         ok(SUCCEEDED(hr), "failed to create moniker: 0x%08lx\n", hr);
45     }
46     if(mon1) IMoniker_Release(mon1);
47     if(mon2) IMoniker_Release(mon2);
48 }
49
50 static void test_create()
51 {
52     test_CreateURLMoniker(TEST_URL_1, TEST_PART_URL_1);
53 }
54
55 START_TEST(url)
56 {
57     test_create();
58 }