summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mumford <cmumford@google.com>2020-12-15 09:13:57 -0800
committerChris Mumford <cmumford@chromium.org>2020-12-15 09:16:39 -0800
commit42d1dd7ea3f7a4bf6f91fb6e197715ec89d82e8f (patch)
tree6c3ea7c8901070848bacb41d8d0f225556274233
parenteaaa0ed0caf37294451fde65d72fc4bab68aef55 (diff)
downloadsnappy-git-42d1dd7ea3f7a4bf6f91fb6e197715ec89d82e8f.tar.gz
Fix CHECK_EQ to call ok() instead of CheckSuccess().
CheckSuccess was removed in e1e91ee464373e0bba4aadfbd3d88a6d84dc5b95. PiperOrigin-RevId: 347625874
-rw-r--r--snappy-test.cc2
-rw-r--r--snappy-test.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/snappy-test.cc b/snappy-test.cc
index 315228a..c9c7f55 100644
--- a/snappy-test.cc
+++ b/snappy-test.cc
@@ -116,7 +116,7 @@ std::string ReadTestDataFile(const std::string& base, size_t size_limit) {
prefix = std::string(srcdir) + "/";
}
file::GetContents(prefix + "testdata/" + base, &contents, file::Defaults()
- ).CheckSuccess();
+ ).ok();
if (size_limit > 0) {
contents = contents.substr(0, size_limit);
}
diff --git a/snappy-test.h b/snappy-test.h
index 243480a..3c3e552 100644
--- a/snappy-test.h
+++ b/snappy-test.h
@@ -382,7 +382,7 @@ class LogMessageVoidify {
#define CHECK_NE(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_OK(cond) (cond).CheckSuccess()
+#define CHECK_OK(cond) (cond).ok()
} // namespace snappy