Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: third_party/crashpad/crashpad/util/mac/xattr_test.cc

Issue 2293113002: Update Crashpad to b35ee1fca18956f3c27ba124d6dc456a723c7670 (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/crashpad/crashpad/util/mac/xattr.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/crashpad/crashpad/util/mac/xattr_test.cc
diff --git a/third_party/crashpad/crashpad/util/mac/xattr_test.cc b/third_party/crashpad/crashpad/util/mac/xattr_test.cc
index a156a0a7c16b71b2034676370617d96a4f81ae10..daaba307ca38badd3696dc4f486fd21fb5ee5c94 100644
--- a/third_party/crashpad/crashpad/util/mac/xattr_test.cc
+++ b/third_party/crashpad/crashpad/util/mac/xattr_test.cc
@@ -117,6 +117,20 @@ TEST_F(Xattr, WriteAndReadTimeT) {
EXPECT_EQ(expected, actual);
}
+TEST_F(Xattr, RemoveAndRead) {
+ const std::string value = "hello world";
+ EXPECT_TRUE(WriteXattr(path(), kKey, value));
+
+ std::string actual;
+ EXPECT_EQ(XattrStatus::kOK, ReadXattr(path(), kKey, &actual));
+ EXPECT_EQ(value, actual);
+
+ EXPECT_EQ(XattrStatus::kOK, RemoveXattr(path(), kKey));
+ EXPECT_EQ(XattrStatus::kNoAttribute, ReadXattr(path(), kKey, &actual));
+
+ EXPECT_EQ(XattrStatus::kNoAttribute, RemoveXattr(path(), kKey));
+}
+
} // namespace
} // namespace test
} // namespace crashpad
« no previous file with comments | « third_party/crashpad/crashpad/util/mac/xattr.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698