-
Notifications
You must be signed in to change notification settings - Fork 107
/
ManualProjectionTestClasses.cpp
167 lines (153 loc) · 4.55 KB
/
ManualProjectionTestClasses.cpp
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#include "pch.h"
#include "ManualProjectionTestClasses.h"
#include "CustomBindableIteratorTest.g.cpp"
#include "CustomDisposableTest.g.cpp"
#include "CustomBindableVectorTest.g.cpp"
#include "CustomBindableObservableVectorTest.g.cpp"
#include "CustomIteratorTest.g.cpp"
namespace winrt::TestComponentCSharp::implementation
{
CustomBindableIteratorTest::CustomBindableIteratorTest()
{
}
bool CustomBindableIteratorTest::MoveNext()
{
return true;
}
Windows::Foundation::IInspectable CustomBindableIteratorTest::Current()
{
return Windows::Foundation::PropertyValue::CreateInt32(27861);
}
bool CustomBindableIteratorTest::HasCurrent()
{
return true;
}
CustomDisposableTest::CustomDisposableTest()
{
}
void CustomDisposableTest::Close()
{
}
CustomBindableVectorTest::CustomBindableVectorTest()
{
}
void CustomBindableVectorTest::Clear()
{
}
void CustomBindableVectorTest::Append(Windows::Foundation::IInspectable value)
{
}
Windows::Foundation::IInspectable CustomBindableVectorTest::GetAt(int32_t index)
{
return Windows::Foundation::PropertyValue::CreateInt32(1);
}
winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView CustomBindableVectorTest::GetView()
{
return winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView();
}
bool CustomBindableVectorTest::IndexOf(Windows::Foundation::IInspectable, uint32_t& index)
{
return false;
}
void CustomBindableVectorTest::InsertAt(int32_t index, Windows::Foundation::IInspectable value)
{
}
void CustomBindableVectorTest::RemoveAt(int32_t index)
{
}
void CustomBindableVectorTest::RemoveAtEnd()
{
}
void CustomBindableVectorTest::SetAt(int32_t index, Windows::Foundation::IInspectable value)
{
}
int32_t CustomBindableVectorTest::Size()
{
return 1;
}
winrt::Microsoft::UI::Xaml::Interop::IBindableIterator CustomBindableVectorTest::First()
{
return winrt::Microsoft::UI::Xaml::Interop::IBindableIterator();
}
winrt::Microsoft::UI::Xaml::Interop::IBindableIterator CustomBindableObservableVectorTest::First()
{
return winrt::Microsoft::UI::Xaml::Interop::IBindableIterator();
}
winrt::Windows::Foundation::IInspectable CustomBindableObservableVectorTest::GetAt(uint32_t index)
{
return Windows::Foundation::PropertyValue::CreateInt32(1);
}
uint32_t CustomBindableObservableVectorTest::Size()
{
return 1;
}
winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView CustomBindableObservableVectorTest::GetView()
{
return winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView();
}
bool CustomBindableObservableVectorTest::IndexOf(winrt::Windows::Foundation::IInspectable const& value, uint32_t& index)
{
return false;
}
void CustomBindableObservableVectorTest::SetAt(uint32_t index, winrt::Windows::Foundation::IInspectable const& value)
{
}
void CustomBindableObservableVectorTest::InsertAt(uint32_t index, winrt::Windows::Foundation::IInspectable const& value)
{
}
void CustomBindableObservableVectorTest::RemoveAt(uint32_t index)
{
}
void CustomBindableObservableVectorTest::Append(winrt::Windows::Foundation::IInspectable const& value)
{
}
void CustomBindableObservableVectorTest::RemoveAtEnd()
{
}
void CustomBindableObservableVectorTest::Clear()
{
}
winrt::event_token CustomBindableObservableVectorTest::VectorChanged(winrt::Microsoft::UI::Xaml::Interop::BindableVectorChangedEventHandler const& handler)
{
throw hresult_not_implemented();
}
void CustomBindableObservableVectorTest::VectorChanged(winrt::event_token const& token) noexcept
{
}
CustomIteratorTest::CustomIteratorTest(winrt::Windows::Foundation::Collections::IIterator<int> iterator)
{
_iterator = iterator;
}
int32_t CustomIteratorTest::Current()
{
if (_iterator)
{
return _iterator.Current();
}
return 2;
}
bool CustomIteratorTest::HasCurrent()
{
if (_iterator)
{
return _iterator.HasCurrent();
}
return true;
}
bool CustomIteratorTest::MoveNext()
{
if (_iterator)
{
return _iterator.MoveNext();
}
return true;
}
uint32_t CustomIteratorTest::GetMany(array_view<int32_t> items)
{
if (_iterator)
{
return _iterator.GetMany(items);
}
throw hresult_not_implemented();
}
}