Index: util/file/string_file_writer_test.cc |
diff --git a/util/file/string_file_writer_test.cc b/util/file/string_file_writer_test.cc |
index f0ec72f75e958da164887f85767abcaef9f82d7d..628b7d0893a7094bde8e0b07666d52e72b00fd67 100644 |
--- a/util/file/string_file_writer_test.cc |
+++ b/util/file/string_file_writer_test.cc |
@@ -354,8 +354,8 @@ TEST(StringFileWriter, SeekInvalid) { |
EXPECT_EQ(1, writer.Seek(0, SEEK_CUR)); |
EXPECT_TRUE(writer.string().empty()); |
- COMPILE_ASSERT(SEEK_SET != 3 && SEEK_CUR != 3 && SEEK_END != 3, |
- three_must_be_invalid_for_whence); |
+ static_assert(SEEK_SET != 3 && SEEK_CUR != 3 && SEEK_END != 3, |
+ "three must be invalid for whence"); |
Mark Mentovai
2014/10/01 03:55:12
This can be a numeral 3 now, since there’s no rest
scottmg
2014/10/01 16:37:19
Done.
|
EXPECT_LT(writer.Seek(0, 3), 0); |
writer.Reset(); |