uianimation/tests: Add initial tests.
[wine.git] / dlls / uianimation / tests / uianimation.c
blob0cb2fbf2b893e107ff600b0c44521248987d0d64
1 /*
2 * UI Animation tests
4 * Copyright 2019 Alistair Leslie-Hughes
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #define COBJMACROS
23 #include "windows.h"
24 #include "initguid.h"
25 #include "uianimation.h"
27 #include "wine/test.h"
29 static void test_UIAnimationManager(void)
31 HRESULT hr;
32 IUIAnimationManager *manager;
33 IUIAnimationVariable *variable;
35 hr = CoCreateInstance( &CLSID_UIAnimationManager, NULL, CLSCTX_ALL, &IID_IUIAnimationManager, (LPVOID*)&manager);
36 if(FAILED(hr))
38 win_skip("UIAnimationManager not found\n");
39 return;
42 hr = IUIAnimationManager_CreateAnimationVariable(manager, 1.0f, &variable);
43 todo_wine ok(hr == S_OK, "got 0x%08x\n", hr);
44 if (hr == S_OK)
45 IUIAnimationVariable_Release(variable);
47 IUIAnimationManager_Release(manager);
50 START_TEST(uianimation)
52 HRESULT hr;
54 hr = CoInitialize(0);
55 ok(hr == S_OK, "failed to init com\n");
56 if(hr != S_OK)
57 return;
59 test_UIAnimationManager();
61 CoUninitialize();