summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-10 22:52:47 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-10 22:52:47 +0000
commit004b9c7aae2cd9e237fe9598fc90ce7aa0da2bf9 (patch)
tree6ebdef2e1baf270b4552015a0b444a031ba093a7 /clang/unittests/Basic/FileManagerTest.cpp
parent0da86301ad06bcaff50559260657c4a7d6e5c579 (diff)
downloadbcm5719-llvm-004b9c7aae2cd9e237fe9598fc90ce7aa0da2bf9.tar.gz
bcm5719-llvm-004b9c7aae2cd9e237fe9598fc90ce7aa0da2bf9.zip
Store FileEntry::Filename as a StringRef instead of raw pointer (NFC)
llvm-svn: 283815
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
-rw-r--r--clang/unittests/Basic/FileManagerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Basic/FileManagerTest.cpp b/clang/unittests/Basic/FileManagerTest.cpp
index d8d85dd76c3..2c606715c21 100644
--- a/clang/unittests/Basic/FileManagerTest.cpp
+++ b/clang/unittests/Basic/FileManagerTest.cpp
@@ -140,7 +140,7 @@ TEST_F(FileManagerTest, getFileReturnsValidFileEntryForExistingRealFile) {
const FileEntry *file = manager.getFile("/tmp/test");
ASSERT_TRUE(file != nullptr);
- EXPECT_STREQ("/tmp/test", file->getName());
+ EXPECT_EQ("/tmp/test", file->getName());
const DirectoryEntry *dir = file->getDir();
ASSERT_TRUE(dir != nullptr);
@@ -164,7 +164,7 @@ TEST_F(FileManagerTest, getFileReturnsValidFileEntryForExistingVirtualFile) {
manager.getVirtualFile("virtual/dir/bar.h", 100, 0);
const FileEntry *file = manager.getFile("virtual/dir/bar.h");
ASSERT_TRUE(file != nullptr);
- EXPECT_STREQ("virtual/dir/bar.h", file->getName());
+ EXPECT_EQ("virtual/dir/bar.h", file->getName());
const DirectoryEntry *dir = file->getDir();
ASSERT_TRUE(dir != nullptr);
OpenPOWER on IntegriCloud