Fix CHECK_EQ to call ok() instead of CheckSuccess().

CheckSuccess was removed in e1e91ee464.

PiperOrigin-RevId: 347625874
This commit is contained in:
Chris Mumford 2020-12-15 09:13:57 -08:00 committed by Chris Mumford
parent eaaa0ed0ca
commit 42d1dd7ea3
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ std::string ReadTestDataFile(const std::string& base, size_t size_limit) {
prefix = std::string(srcdir) + "/"; prefix = std::string(srcdir) + "/";
} }
file::GetContents(prefix + "testdata/" + base, &contents, file::Defaults() file::GetContents(prefix + "testdata/" + base, &contents, file::Defaults()
).CheckSuccess(); ).ok();
if (size_limit > 0) { if (size_limit > 0) {
contents = contents.substr(0, size_limit); contents = contents.substr(0, size_limit);
} }

View File

@ -382,7 +382,7 @@ class LogMessageVoidify {
#define CHECK_NE(a, b) CRASH_UNLESS((a) != (b)) #define CHECK_NE(a, b) CRASH_UNLESS((a) != (b))
#define CHECK_LT(a, b) CRASH_UNLESS((a) < (b)) #define CHECK_LT(a, b) CRASH_UNLESS((a) < (b))
#define CHECK_GT(a, b) CRASH_UNLESS((a) > (b)) #define CHECK_GT(a, b) CRASH_UNLESS((a) > (b))
#define CHECK_OK(cond) (cond).CheckSuccess() #define CHECK_OK(cond) (cond).ok()
} // namespace snappy } // namespace snappy