Lines Matching refs:FD
32 using FD=C2FieldDescriptor; in PrintTo() typedef
34 case FD::INT32: *os << "i32"; break; in PrintTo()
35 case FD::INT64: *os << "i64"; break; in PrintTo()
36 case FD::UINT32: *os << "u32"; break; in PrintTo()
37 case FD::UINT64: *os << "u64"; break; in PrintTo()
38 case FD::FLOAT: *os << "float"; break; in PrintTo()
39 case FD::STRING: *os << "char"; break; in PrintTo()
40 case FD::BLOB: *os << "u8"; break; in PrintTo()
42 if (fd.type() & FD::STRUCT_FLAG) { in PrintTo()
43 *os << "struct-" << (fd.type() & ~FD::STRUCT_FLAG); in PrintTo()
71 typedef C2FieldDescriptor FD; typedef
98 const static FD::type_t TYPE = (FD::type_t)(CORE_INDEX | FD::STRUCT_FLAG);
133 { { FD::INT32, 1, "s32", 0, 4 },
134 { FD::INT64, 2, "s64", 4, 8 },
135 { FD::UINT32, 1, "u32", 20, 4 },
136 { FD::UINT64, 1, "u64", 24, 8 },
137 { FD::FLOAT, 1, "fp", 32, 4 },
139 { FD::BLOB, 100, "blob", 60, 1 },
140 { FD::STRING, 100, "str", 160, 1 },
141 { FD::BLOB, 100, "y-n", 260, 1 } };
147 EXPECT_EQ(FD::INT32, fields[0].type()); in TEST_P()
262 using type_t=FD::type_t;
269 std::is_same<T, int32_t>::value ? FD::INT32 :
270 std::is_same<T, int64_t>::value ? FD::INT64 :
271 std::is_same<T, uint32_t>::value ? FD::UINT32 :
272 std::is_same<T, uint64_t>::value ? FD::UINT64 :
273 std::is_same<T, float>::value ? FD::FLOAT :
274 std::is_same<T, uint8_t>::value ? FD::BLOB :
275 std::is_same<T, char>::value ? FD::STRING :
288 EXPECT_EQ(C2FieldDescriptor(FD::INT32, 1, "s32", 0, 4), fields[0]); in TYPED_TEST()
313 { FD::INT32, 0, "flex", 0, 4 }
331 { FD::INT32, 1, "s32", 0, 4 },
332 { FD::INT32, 0, "flex", 4, 4 },
390 { FD::INT64, 0, "flex", 0, 8 }
408 { FD::INT32, 1, "s32", 0, 4 },
409 { FD::INT64, 0, "flex", 4, 8 },
477 { FD::INT32, 1, "s32", 0, 4 },
2275 EXPECT_EQ(FD::INT32, fields.cbegin()->type()); in TEST_F()
2286 EXPECT_EQ(FD::UINT32, fields.cbegin()->type()); in TEST_F()
2297 EXPECT_EQ(FD::INT64, fields.cbegin()->type()); in TEST_F()
2308 EXPECT_EQ(FD::UINT64, fields.cbegin()->type()); in TEST_F()
2319 EXPECT_EQ(FD::FLOAT, fields.cbegin()->type()); in TEST_F()
2333 EXPECT_EQ(FD::BLOB, fields.cbegin()->type()); in TEST_F()
2352 EXPECT_EQ(FD::STRING, fields.cbegin()->type()); in TEST_F()