Lines Matching refs:Size
40 template <size_t Size>
44 // Note on |out| sizes: most tests use Size * 2 to ensure the out buffer is
46 char out[Size * 2];
49 fbl::Name<Size> name;
58 template <size_t Size>
62 char out[Size * 2];
65 fbl::Name<Size> name("", 1);
74 template <size_t Size>
78 char out[Size * 2];
81 fbl::Name<Size> name("a", 2);
91 template <size_t Size>
95 char out[Size * 2];
98 char expected_name[Size];
99 memset(expected_name, 'z', Size - 1);
100 expected_name[Size - 1] = 0;
102 fbl::Name<Size> name(expected_name, Size);
105 for (size_t idx = 0; idx < Size - 1; ++idx) {
108 EXPECT_EQ(out[Size - 1], 0, "");
114 template <size_t Size>
118 constexpr size_t overflow_size = 2 * Size;
127 fbl::Name<Size> name(expected_name, overflow_size);
130 for (size_t idx = 0; idx < Size - 1; ++idx) {
133 EXPECT_EQ(out[Size - 1], 0, "");
139 template <size_t Size>
146 fbl::Name<Size> name("a", 2);