@@ -41,7 +41,7 @@ namespace rtl_tests
4141 {
4242 {
4343 // Retrieve the metadata for the "Animal" class.
44- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
44+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
4545 ASSERT_TRUE (classAnimal);
4646
4747 // Create an instance of the "Animal" class.
@@ -50,7 +50,7 @@ namespace rtl_tests
5050 ASSERT_FALSE (animal.isEmpty ());
5151
5252 // Retrieve the "setAnimalName" method.
53- optional<Method> oSetAnimalName = classAnimal->getMethod (animal::str_setAnimalName );
53+ optional<Method> oSetAnimalName = classAnimal->getMethod (cxx::type::Animal::fn::setFamilyName::id );
5454 ASSERT_TRUE (oSetAnimalName);
5555 // Verify that the method has the correct signature for an R-value reference.
5656 EXPECT_TRUE ((oSetAnimalName->hasSignature <std::string&&>()));
@@ -83,7 +83,7 @@ namespace rtl_tests
8383 {
8484 {
8585 // Retrieve the metadata for the "Animal" class.
86- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
86+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
8787 ASSERT_TRUE (classAnimal);
8888
8989 // Create an instance of the "Animal" class.
@@ -92,7 +92,7 @@ namespace rtl_tests
9292 ASSERT_FALSE (animal.isEmpty ());
9393
9494 // Retrieve the "setAnimalName" method.
95- optional<Method> oSetAnimalName = classAnimal->getMethod (animal::str_setAnimalName );
95+ optional<Method> oSetAnimalName = classAnimal->getMethod (cxx::type::Animal::fn::setFamilyName::id );
9696 ASSERT_TRUE (oSetAnimalName);
9797 // Verify that the method has the correct signature for a non-const L-value reference.
9898 EXPECT_TRUE ((oSetAnimalName->hasSignature <std::string&>()));
@@ -126,7 +126,7 @@ namespace rtl_tests
126126 {
127127 {
128128 // Retrieve the metadata for the "Animal" class.
129- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
129+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
130130 ASSERT_TRUE (classAnimal);
131131
132132 // Create an instance of the "Animal" class.
@@ -135,7 +135,7 @@ namespace rtl_tests
135135 ASSERT_FALSE (animal.isEmpty ());
136136
137137 // Retrieve the "setAnimalName" method.
138- optional<Method> oSetAnimalName = classAnimal->getMethod (animal::str_setAnimalName );
138+ optional<Method> oSetAnimalName = classAnimal->getMethod (cxx::type::Animal::fn::setFamilyName::id );
139139 ASSERT_TRUE (oSetAnimalName);
140140 // Verify that the method has the correct signature for a const L-value reference.
141141 EXPECT_TRUE ((oSetAnimalName->hasSignature <const std::string&>()));
@@ -170,7 +170,7 @@ namespace rtl_tests
170170 {
171171 {
172172 // Retrieve the metadata for the "Animal" class.
173- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
173+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
174174 ASSERT_TRUE (classAnimal);
175175
176176 // Create an instance of the "Animal" class.
@@ -179,7 +179,7 @@ namespace rtl_tests
179179 ASSERT_FALSE (animal.isEmpty ());
180180
181181 // Retrieve the "setAnimalName" method.
182- optional<Method> oSetAnimalName = classAnimal->getMethod (animal::str_setAnimalName );
182+ optional<Method> oSetAnimalName = classAnimal->getMethod (cxx::type::Animal::fn::setFamilyName::id );
183183 ASSERT_TRUE (oSetAnimalName);
184184 // Verify that the method has the correct signature for an R-value reference.
185185 EXPECT_TRUE ((oSetAnimalName->hasSignature <std::string&&>()));
@@ -212,7 +212,7 @@ namespace rtl_tests
212212 {
213213 {
214214 // Retrieve the metadata for the "Animal" class.
215- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
215+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
216216 ASSERT_TRUE (classAnimal);
217217
218218 // Create an instance of the "Animal" class.
@@ -221,7 +221,7 @@ namespace rtl_tests
221221 ASSERT_FALSE (animal.isEmpty ());
222222
223223 // Retrieve the "setAnimalName" method.
224- optional<Method> oSetAnimalName = classAnimal->getMethod (animal::str_setAnimalName );
224+ optional<Method> oSetAnimalName = classAnimal->getMethod (cxx::type::Animal::fn::setFamilyName::id );
225225 ASSERT_TRUE (oSetAnimalName);
226226 // Verify that the method has the correct signature for a non-const L-value reference.
227227 EXPECT_TRUE ((oSetAnimalName->hasSignature <std::string&>()));
@@ -254,7 +254,7 @@ namespace rtl_tests
254254 {
255255 {
256256 // Retrieve the metadata for the "Animal" class.
257- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
257+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
258258 ASSERT_TRUE (classAnimal);
259259
260260 // Create an instance of the "Animal" class.
@@ -263,7 +263,7 @@ namespace rtl_tests
263263 ASSERT_FALSE (animal.isEmpty ());
264264
265265 // Retrieve the "setAnimalName" method.
266- optional<Method> oSetAnimalName = classAnimal->getMethod (animal::str_setAnimalName );
266+ optional<Method> oSetAnimalName = classAnimal->getMethod (cxx::type::Animal::fn::setFamilyName::id );
267267 ASSERT_TRUE (oSetAnimalName);
268268 // Verify that the method has the correct signature for a const L-value reference.
269269 EXPECT_TRUE ((oSetAnimalName->hasSignature <const std::string&>()));
@@ -290,10 +290,10 @@ namespace rtl_tests
290290 TEST (PerfectForwardingTest, static_fn_overload_resolution_with_rvalue_ref)
291291 {
292292 {
293- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
293+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
294294 ASSERT_TRUE (classAnimal);
295295
296- optional<Method> oUpdateZooKeeper = classAnimal->getMethod (animal::str_updateZooKeeper );
296+ optional<Method> oUpdateZooKeeper = classAnimal->getMethod (cxx::type::Animal::fn::updateZooKeeper::id );
297297 ASSERT_TRUE (oUpdateZooKeeper);
298298
299299 const auto & isValid = oUpdateZooKeeper->hasSignature <std::string&&>();
@@ -324,10 +324,10 @@ namespace rtl_tests
324324 TEST (PerfectForwardingTest, static_fn_overload_resolution_with_const_lvalue_ref)
325325 {
326326 {
327- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
327+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
328328 ASSERT_TRUE (classAnimal);
329329
330- optional<Method> oUpdateZooKeeper = classAnimal->getMethod (animal::str_updateZooKeeper );
330+ optional<Method> oUpdateZooKeeper = classAnimal->getMethod (cxx::type::Animal::fn::updateZooKeeper::id );
331331 ASSERT_TRUE (oUpdateZooKeeper);
332332
333333 const auto & isValid = oUpdateZooKeeper->hasSignature <const std::string&>();
@@ -354,10 +354,10 @@ namespace rtl_tests
354354 TEST (PerfectForwardingTest, static_fn_overload_resolution_with_non_const_lvalue_ref)
355355 {
356356 {
357- optional<Record> classAnimal = cxx::mirror ().getRecord (animal::class_ );
357+ optional<Record> classAnimal = cxx::mirror ().getRecord (cxx::type::Animal::id );
358358 ASSERT_TRUE (classAnimal);
359359
360- optional<Method> oUpdateZooKeeper = classAnimal->getMethod (animal::str_updateZooKeeper );
360+ optional<Method> oUpdateZooKeeper = classAnimal->getMethod (cxx::type::Animal::fn::updateZooKeeper::id );
361361 ASSERT_TRUE (oUpdateZooKeeper);
362362
363363 const auto & isValid = oUpdateZooKeeper->hasSignature <const std::string&>();
0 commit comments