File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,12 @@ TEST(EnumReflectionTest, GetIntegerTypeFromEnumScope) {
124
124
EXPECT_EQ (Cpp::GetTypeAsString (Cpp::GetIntegerTypeFromEnumScope (Decls[1 ])), " char" );
125
125
EXPECT_EQ (Cpp::GetTypeAsString (Cpp::GetIntegerTypeFromEnumScope (Decls[2 ])), " int" );
126
126
EXPECT_EQ (Cpp::GetTypeAsString (Cpp::GetIntegerTypeFromEnumScope (Decls[3 ])), " long long" );
127
+ #ifdef _WIN32
128
+ EXPECT_EQ (Cpp::GetTypeAsString (Cpp::GetIntegerTypeFromEnumScope (Decls[4 ])),
129
+ " int" );
130
+ #else
127
131
EXPECT_EQ (Cpp::GetTypeAsString (Cpp::GetIntegerTypeFromEnumScope (Decls[4 ])), " unsigned int" );
132
+ #endif
128
133
EXPECT_EQ (Cpp::GetTypeAsString (Cpp::GetIntegerTypeFromEnumScope (Decls[5 ]))," NULL TYPE" );
129
134
}
130
135
@@ -180,7 +185,11 @@ TEST(EnumReflectionTest, GetIntegerTypeFromEnumType) {
180
185
EXPECT_EQ (get_int_type_from_enum_var (Decls[7 ]), " char" );
181
186
EXPECT_EQ (get_int_type_from_enum_var (Decls[8 ]), " int" );
182
187
EXPECT_EQ (get_int_type_from_enum_var (Decls[9 ]), " long long" );
188
+ #ifdef _WIN32
189
+ EXPECT_EQ (get_int_type_from_enum_var (Decls[10 ]), " int" );
190
+ #else
183
191
EXPECT_EQ (get_int_type_from_enum_var (Decls[10 ]), " unsigned int" );
192
+ #endif
184
193
EXPECT_EQ (get_int_type_from_enum_var (Decls[11 ]), " NULL TYPE" ); // When a non Enum Type variable is used
185
194
}
186
195
You can’t perform that action at this time.
0 commit comments