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

Unified Diff: util/mac/xattr_test.cc

Issue 842513002: Create CrashReportDatabase interface, a test, and a Mac implementation. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 11 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
« util/mac/xattr.cc ('K') | « 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: util/mac/xattr_test.cc
diff --git a/util/mac/xattr_test.cc b/util/mac/xattr_test.cc
index c02aa08c383611c5af39f86eeb748e79d3cc7a92..a0545efe4511bc6a67449688adeaaefc6e28d091 100644
--- a/util/mac/xattr_test.cc
+++ b/util/mac/xattr_test.cc
@@ -55,6 +55,12 @@ class Xattr : public testing::Test {
const char kKey[] = "com.google.crashpad.test";
+TEST_F(Xattr, HasXattr) {
+ EXPECT_FALSE(HasXattr(path(), kKey));
+ EXPECT_TRUE(WriteXattr(path(), kKey, ""));
+ EXPECT_TRUE(HasXattr(path(), kKey));
+}
+
TEST_F(Xattr, ReadNonExistentXattr) {
std::string value;
EXPECT_FALSE(ReadXattr(path(), kKey, &value));
« util/mac/xattr.cc ('K') | « util/mac/xattr.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698