-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathManualProjectionTestClasses.h
More file actions
97 lines (81 loc) · 3.33 KB
/
Copy pathManualProjectionTestClasses.h
File metadata and controls
97 lines (81 loc) · 3.33 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#pragma once
#include "CustomBindableIteratorTest.g.h"
#include "CustomDisposableTest.g.h"
#include "CustomBindableVectorTest.g.h"
#include "CustomBindableObservableVectorTest.g.h"
#include "CustomIteratorTest.g.h"
namespace winrt::TestComponentCSharp::implementation
{
struct CustomBindableIteratorTest : CustomBindableIteratorTestT<CustomBindableIteratorTest>
{
CustomBindableIteratorTest();
bool MoveNext();
Windows::Foundation::IInspectable Current();
bool HasCurrent();
};
struct CustomDisposableTest : CustomDisposableTestT<CustomDisposableTest>
{
CustomDisposableTest();
void Close();
};
struct CustomBindableVectorTest : CustomBindableVectorTestT<CustomBindableVectorTest>
{
CustomBindableVectorTest();
void Clear();
void Append(Windows::Foundation::IInspectable value);
Windows::Foundation::IInspectable GetAt(int32_t index);
winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView GetView();
bool IndexOf(Windows::Foundation::IInspectable, uint32_t& index);
void InsertAt(int32_t index, Windows::Foundation::IInspectable value);
void RemoveAt(int32_t index);
void RemoveAtEnd();
void SetAt(int32_t index, Windows::Foundation::IInspectable value);
int32_t Size();
winrt::Microsoft::UI::Xaml::Interop::IBindableIterator First();
};
struct CustomBindableObservableVectorTest : CustomBindableObservableVectorTestT<CustomBindableObservableVectorTest>
{
CustomBindableObservableVectorTest() = default;
winrt::Microsoft::UI::Xaml::Interop::IBindableIterator First();
winrt::Windows::Foundation::IInspectable GetAt(uint32_t index);
uint32_t Size();
winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView GetView();
bool IndexOf(winrt::Windows::Foundation::IInspectable const& value, uint32_t& index);
void SetAt(uint32_t index, winrt::Windows::Foundation::IInspectable const& value);
void InsertAt(uint32_t index, winrt::Windows::Foundation::IInspectable const& value);
void RemoveAt(uint32_t index);
void Append(winrt::Windows::Foundation::IInspectable const& value);
void RemoveAtEnd();
void Clear();
winrt::event_token VectorChanged(winrt::Microsoft::UI::Xaml::Interop::BindableVectorChangedEventHandler const& handler);
void VectorChanged(winrt::event_token const& token) noexcept;
};
struct CustomIteratorTest : CustomIteratorTestT<CustomIteratorTest>
{
CustomIteratorTest() = default;
CustomIteratorTest(winrt::Windows::Foundation::Collections::IIterator<int> iterator);
int32_t Current();
bool HasCurrent();
bool MoveNext();
uint32_t GetMany(array_view<int32_t> items);
winrt::Windows::Foundation::Collections::IIterator<int> _iterator;
};
}
namespace winrt::TestComponentCSharp::factory_implementation
{
struct CustomBindableIteratorTest : CustomBindableIteratorTestT<CustomBindableIteratorTest, implementation::CustomBindableIteratorTest>
{
};
struct CustomDisposableTest : CustomDisposableTestT<CustomDisposableTest, implementation::CustomDisposableTest>
{
};
struct CustomBindableVectorTest : CustomBindableVectorTestT<CustomBindableVectorTest, implementation::CustomBindableVectorTest>
{
};
struct CustomBindableObservableVectorTest : CustomBindableObservableVectorTestT<CustomBindableObservableVectorTest, implementation::CustomBindableObservableVectorTest>
{
};
struct CustomIteratorTest : CustomIteratorTestT<CustomIteratorTest, implementation::CustomIteratorTest>
{
};
}