@@ -138,35 +138,35 @@ static void MaybeStackBufferBasic() {
138138 size_t old_length;
139139 size_t old_capacity;
140140
141- /* Default constructor */
141+ // Default constructor.
142142 EXPECT_EQ (0U , buf.length ());
143143 EXPECT_FALSE (buf.IsAllocated ());
144144 EXPECT_GT (buf.capacity (), buf.length ());
145145
146- /* SetLength() expansion */
146+ // SetLength() expansion.
147147 buf.SetLength (buf.capacity ());
148148 EXPECT_EQ (buf.capacity (), buf.length ());
149149 EXPECT_FALSE (buf.IsAllocated ());
150150
151- /* Means of accessing raw buffer */
151+ // Means of accessing raw buffer.
152152 EXPECT_EQ (buf.out (), *buf);
153153 EXPECT_EQ (&buf[0 ], *buf);
154154
155- /* Basic I/O */
155+ // Basic I/O.
156156 for (size_t i = 0 ; i < buf.length (); i++)
157157 buf[i] = static_cast <T>(i);
158158 for (size_t i = 0 ; i < buf.length (); i++)
159159 EXPECT_EQ (static_cast <T>(i), buf[i]);
160160
161- /* SetLengthAndZeroTerminate() */
161+ // SetLengthAndZeroTerminate().
162162 buf.SetLengthAndZeroTerminate (buf.capacity () - 1 );
163163 EXPECT_EQ (buf.capacity () - 1 , buf.length ());
164164 for (size_t i = 0 ; i < buf.length (); i++)
165165 EXPECT_EQ (static_cast <T>(i), buf[i]);
166166 buf.SetLength (buf.capacity ());
167167 EXPECT_EQ (0 , buf[buf.length () - 1 ]);
168168
169- /* Initial Realloc */
169+ // Initial Realloc.
170170 old_length = buf.length () - 1 ;
171171 old_capacity = buf.capacity ();
172172 buf.AllocateSufficientStorage (buf.capacity () * 2 );
@@ -176,7 +176,7 @@ static void MaybeStackBufferBasic() {
176176 EXPECT_EQ (static_cast <T>(i), buf[i]);
177177 EXPECT_EQ (0 , buf[old_length]);
178178
179- /* SetLength() reduction and expansion */
179+ // SetLength() reduction and expansion.
180180 for (size_t i = 0 ; i < buf.length (); i++)
181181 buf[i] = static_cast <T>(i);
182182 buf.SetLength (10 );
@@ -186,7 +186,7 @@ static void MaybeStackBufferBasic() {
186186 for (size_t i = 0 ; i < buf.length (); i++)
187187 EXPECT_EQ (static_cast <T>(i), buf[i]);
188188
189- /* Subsequent Realloc */
189+ // Subsequent Realloc.
190190 old_length = buf.length ();
191191 old_capacity = buf.capacity ();
192192 buf.AllocateSufficientStorage (old_capacity * 1.5 );
@@ -196,13 +196,13 @@ static void MaybeStackBufferBasic() {
196196 for (size_t i = 0 ; i < old_length; i++)
197197 EXPECT_EQ (static_cast <T>(i), buf[i]);
198198
199- /* Basic I/O on Realloc'd buffer */
199+ // Basic I/O on Realloc'd buffer.
200200 for (size_t i = 0 ; i < buf.length (); i++)
201201 buf[i] = static_cast <T>(i);
202202 for (size_t i = 0 ; i < buf.length (); i++)
203203 EXPECT_EQ (static_cast <T>(i), buf[i]);
204204
205- /* Release() */
205+ // Release().
206206 T* rawbuf = buf.out ();
207207 buf.Release ();
208208 EXPECT_EQ (0U , buf.length ());
@@ -215,7 +215,7 @@ TEST(UtilTest, MaybeStackBuffer) {
215215 MaybeStackBufferBasic<uint8_t >();
216216 MaybeStackBufferBasic<uint16_t >();
217217
218- // Constructor with size parameter
218+ // Constructor with size parameter.
219219 {
220220 MaybeStackBuffer<unsigned char > buf (100 );
221221 EXPECT_EQ (100U , buf.length ());
@@ -239,7 +239,7 @@ TEST(UtilTest, MaybeStackBuffer) {
239239 EXPECT_EQ (static_cast <unsigned char >(i), bigbuf[i]);
240240 }
241241
242- // Invalidated buffer
242+ // Invalidated buffer.
243243 {
244244 MaybeStackBuffer<char > buf;
245245 buf.Invalidate ();
0 commit comments