Bug 685236 - Stop using GetNativePath in url-classifier. r?mossop
MozReview-Commit-ID: 1pDfFN3NxrF
--- a/toolkit/components/url-classifier/tests/gtest/TestFailUpdate.cpp
+++ b/toolkit/components/url-classifier/tests/gtest/TestFailUpdate.cpp
@@ -24,19 +24,17 @@ void CheckFileExist(const char* table, c
// This is just a quick way to know if this is v4 table
NS_ConvertUTF8toUTF16 SUB_DIR(strstr(table, "-proto") ? "google4" : "");
nsCOMPtr<nsIFile> file =
GetFile(nsTArray<nsString> { ROOT_DIR, SUB_DIR, SB_FILE(table, files[i]) });
bool exists;
file->Exists(&exists);
- nsAutoCString path;
- file->GetNativePath(path);
- ASSERT_EQ(expectExists, exists) << path.get();
+ ASSERT_EQ(expectExists, exists) << file->DisplayPath().get();
}
}
TEST(FailUpdate, CheckTableReset)
{
const bool FULL_UPDATE = true;
const bool PARTIAL_UPDATE = false;