/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return operator()(fd, iov, count);
}
-} // namespace
+} // namespace
class FileUtilTest : public ::testing::Test {
protected:
EXPECT_EQ(0440, getPerms(tmpPath("foo_txt")));
EXPECT_EQ(0444, getPerms(tmpPath("foo.txt2")));
}
-}} // namespaces
+} // namespace test
+} // namespace folly
#if defined(__linux__)
namespace {
};
std::atomic<int> FChmodFailure::forceFailure_{0};
-}
+} // namespace
// Replace the system fchmod() function with our own stub, so we can
// trigger failures in the writeFileAtomic() tests.
EXPECT_EQ(0600, getPerms(path));
EXPECT_EQ(set<string>{"foo"}, listTmpDir());
}
-}
-}
+} // namespace test
+} // namespace folly
#endif