Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@ -19,15 +19,18 @@ TEST(FileUtil, JoinPath) {
// Should always be 1 kPathSep character between paths.
EXPECT_STREQ(expected.c_str(), file_util::JoinPath("path1", "path2").c_str());
EXPECT_STREQ(
expected.c_str(),
file_util::JoinPath(std::string("path1") + file_util::kPathSep, "path2")
.c_str());
EXPECT_STREQ(
expected.c_str(),
file_util::JoinPath("path1", file_util::kPathSep + std::string("path2"))
.c_str());
EXPECT_STREQ(expected.c_str(),
file_util::JoinPath(std::string("path1") + file_util::kPathSep,
"path2").c_str());
EXPECT_STREQ(expected.c_str(),
file_util::JoinPath("path1",
file_util::kPathSep + std::string("path2")).c_str());
EXPECT_STREQ(expected.c_str(),
file_util::JoinPath(std::string("path1") + file_util::kPathSep,
file_util::kPathSep + std::string("path2")).c_str());
file_util::JoinPath(std::string("path1") + file_util::kPathSep,
file_util::kPathSep + std::string("path2"))
.c_str());
}
TEST(FileUtil, WriteAndReadFile) {