-
Notifications
You must be signed in to change notification settings - Fork 16
/
CollectionTester.h
31 lines (27 loc) · 1.76 KB
/
CollectionTester.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include "CollectionTester.g.h"
namespace winrt::test_component::implementation
{
struct CollectionTester : CollectionTesterT<CollectionTester>
{
CollectionTester() = default;
static hstring InIterable(Windows::Foundation::Collections::IIterable<hstring> const& value);
static hstring InIterablePair(Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IKeyValuePair<hstring, hstring>> const& value);
static hstring InMap(winrt::Windows::Foundation::Collections::IMap<hstring, hstring> const& value);
static hstring InMapView(winrt::Windows::Foundation::Collections::IMapView<hstring, hstring> const& value);
static hstring InVector(winrt::Windows::Foundation::Collections::IVector<hstring> const& value);
static hstring InVectorView(winrt::Windows::Foundation::Collections::IVectorView<hstring> const& value);
static void GetObjectAt(winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Foundation::IInspectable> const& value, uint32_t index, winrt::test_component::ObjectHandler const& callback);
static winrt::Windows::Foundation::Collections::IIterable<hstring> VectorAsIterable(winrt::Windows::Foundation::Collections::IVector<hstring> const& value);
winrt::Windows::Foundation::Collections::IVector<hstring> ReturnStoredStringVector();
winrt::Windows::Foundation::Collections::IMap<hstring, hstring> ReturnMapFromStringToString();
private:
Windows::Foundation::Collections::IVector<hstring> m_vector { winrt::single_threaded_vector<hstring>() };
};
}
namespace winrt::test_component::factory_implementation
{
struct CollectionTester : CollectionTesterT<CollectionTester, implementation::CollectionTester>
{
};
}