Commit cbf19c30 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

browseui/tests: Make some functions static.

parent a9d3d0e9
......@@ -45,7 +45,7 @@
ok(FALSE, #exp " failed: %x\n", res); \
}
LPWSTR strdup_AtoW(LPCSTR str)
static LPWSTR strdup_AtoW(LPCSTR str)
{
int size = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
LPWSTR wstr = (LPWSTR)CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
......@@ -86,14 +86,14 @@ static TestACL *TestACL_Constructor(int limit, const char **strings)
return This;
}
ULONG STDMETHODCALLTYPE TestACL_AddRef(IEnumString *iface)
static ULONG STDMETHODCALLTYPE TestACL_AddRef(IEnumString *iface)
{
TestACL *This = (TestACL *)iface;
trace("ACL(%p): addref (%d)\n", This, This->ref+1);
return InterlockedIncrement(&This->ref);
}
ULONG STDMETHODCALLTYPE TestACL_Release(IEnumString *iface)
static ULONG STDMETHODCALLTYPE TestACL_Release(IEnumString *iface)
{
TestACL *This = (TestACL *)iface;
ULONG res;
......@@ -103,7 +103,7 @@ ULONG STDMETHODCALLTYPE TestACL_Release(IEnumString *iface)
return res;
}
HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFIID iid, LPVOID *ppvOut)
static HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFIID iid, LPVOID *ppvOut)
{
TestACL *This = (TestACL *)iface;
*ppvOut = NULL;
......@@ -129,7 +129,7 @@ HRESULT STDMETHODCALLTYPE TestACL_QueryInterface(IEnumString *iface, REFIID iid,
return E_NOINTERFACE;
}
HRESULT STDMETHODCALLTYPE TestACL_Next(IEnumString *iface, ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
static HRESULT STDMETHODCALLTYPE TestACL_Next(IEnumString *iface, ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
{
TestACL *This = (TestACL *)iface;
ULONG i;
......@@ -150,19 +150,19 @@ HRESULT STDMETHODCALLTYPE TestACL_Next(IEnumString *iface, ULONG celt, LPOLESTR
return S_FALSE;
}
HRESULT STDMETHODCALLTYPE TestACL_Skip(IEnumString *iface, ULONG celt)
static HRESULT STDMETHODCALLTYPE TestACL_Skip(IEnumString *iface, ULONG celt)
{
ok(FALSE, "Unexpected call to TestACL_Skip\n");
return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE TestACL_Clone(IEnumString *iface, IEnumString **out)
static HRESULT STDMETHODCALLTYPE TestACL_Clone(IEnumString *iface, IEnumString **out)
{
ok(FALSE, "Unexpected call to TestACL_Clone\n");
return E_OUTOFMEMORY;
}
HRESULT STDMETHODCALLTYPE TestACL_Reset(IEnumString *iface)
static HRESULT STDMETHODCALLTYPE TestACL_Reset(IEnumString *iface)
{
TestACL *This = (TestACL *)iface;
trace("ACL(%p): Reset\n", This);
......@@ -170,7 +170,7 @@ HRESULT STDMETHODCALLTYPE TestACL_Reset(IEnumString *iface)
return S_OK;
}
HRESULT STDMETHODCALLTYPE TestACL_Expand(IACList *iface, LPCOLESTR str)
static HRESULT STDMETHODCALLTYPE TestACL_Expand(IACList *iface, LPCOLESTR str)
{
TestACL *This = impl_from_IACList(iface);
trace("ACL(%p): Expand\n", impl_from_IACList(iface));
......@@ -190,17 +190,17 @@ IEnumStringVtbl TestACLVtbl =
TestACL_Clone
};
ULONG STDMETHODCALLTYPE TestACL_ACList_AddRef(IACList *iface)
static ULONG STDMETHODCALLTYPE TestACL_ACList_AddRef(IACList *iface)
{
return TestACL_AddRef((IEnumString *)impl_from_IACList(iface));
}
ULONG STDMETHODCALLTYPE TestACL_ACList_Release(IACList *iface)
static ULONG STDMETHODCALLTYPE TestACL_ACList_Release(IACList *iface)
{
return TestACL_Release((IEnumString *)impl_from_IACList(iface));
}
HRESULT STDMETHODCALLTYPE TestACL_ACList_QueryInterface(IACList *iface, REFIID iid, LPVOID *ppvout)
static HRESULT STDMETHODCALLTYPE TestACL_ACList_QueryInterface(IACList *iface, REFIID iid, LPVOID *ppvout)
{
return TestACL_QueryInterface((IEnumString *)impl_from_IACList(iface), iid, ppvout);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment