4 * Copyright 2004 Kevin Koltzau
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.
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.
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
29 #include "wine/test.h"
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'};
34 static void test_CreateURLMoniker(LPCWSTR url1, LPCWSTR url2)
37 IMoniker *mon1 = NULL;
38 IMoniker *mon2 = NULL;
40 hr = CreateURLMoniker(NULL, url1, &mon1);
41 ok(SUCCEEDED(hr), "failed to create moniker: 0x%08lx\n", hr);
43 hr = CreateURLMoniker(mon1, url2, &mon2);
44 ok(SUCCEEDED(hr), "failed to create moniker: 0x%08lx\n", hr);
46 if(mon1) IMoniker_Release(mon1);
47 if(mon2) IMoniker_Release(mon2);
50 static void test_create()
52 test_CreateURLMoniker(TEST_URL_1, TEST_PART_URL_1);