summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Target/ModuleCacheTest.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-01 04:45:28 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-01 04:45:28 +0000
commit59b78bcba2c7c20fbf5b4dcd14ea7a23c196a289 (patch)
treee44d025c11035561b451e9d77d3a401a5d88704f /lldb/unittests/Target/ModuleCacheTest.cpp
parent56a5a0c3ce57da8c4c8def9f30b628bcb9a4f87f (diff)
downloadbcm5719-llvm-59b78bcba2c7c20fbf5b4dcd14ea7a23c196a289.tar.gz
bcm5719-llvm-59b78bcba2c7c20fbf5b4dcd14ea7a23c196a289.zip
[FileSystem] Remove GetByteSize() from FileSpec
This patch removes the GetByteSize method from FileSpec and updates its uses with calls to the FileSystem. Differential revision: https://reviews.llvm.org/D53788 llvm-svn: 345812
Diffstat (limited to 'lldb/unittests/Target/ModuleCacheTest.cpp')
-rw-r--r--lldb/unittests/Target/ModuleCacheTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/unittests/Target/ModuleCacheTest.cpp b/lldb/unittests/Target/ModuleCacheTest.cpp
index 59abe8e6c12..5d2d8a732c6 100644
--- a/lldb/unittests/Target/ModuleCacheTest.cpp
+++ b/lldb/unittests/Target/ModuleCacheTest.cpp
@@ -83,12 +83,12 @@ void ModuleCacheTest::TearDownTestCase() {
static void VerifyDiskState(const FileSpec &cache_dir, const char *hostname) {
FileSpec uuid_view = GetUuidView(cache_dir);
EXPECT_TRUE(uuid_view.Exists()) << "uuid_view is: " << uuid_view.GetCString();
- EXPECT_EQ(module_size, uuid_view.GetByteSize());
+ EXPECT_EQ(module_size, FileSystem::Instance().GetByteSize(uuid_view));
FileSpec sysroot_view = GetSysrootView(cache_dir, hostname);
EXPECT_TRUE(sysroot_view.Exists()) << "sysroot_view is: "
<< sysroot_view.GetCString();
- EXPECT_EQ(module_size, sysroot_view.GetByteSize());
+ EXPECT_EQ(module_size, FileSystem::Instance().GetByteSize(sysroot_view));
}
void ModuleCacheTest::TryGetAndPut(const FileSpec &cache_dir,
OpenPOWER on IntegriCloud