Bug 685236 - Stop using GetNativePath in url-classifier. r?mossop draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sat, 16 Dec 2017 22:48:29 +0900
changeset 715697 2561f64694f0fde3cfeafc54cdbeac3920c9d6bd
parent 715696 a027c68063f6e3e45cf38bd6097788f8cc554a3f
child 715698 18fcb03256af1f6c17591be5e442b23ad0d47fc5
push id94228
push userVYV03354@nifty.ne.jp
push dateThu, 04 Jan 2018 11:56:10 +0000
reviewersmossop
bugs685236
milestone59.0a1
Bug 685236 - Stop using GetNativePath in url-classifier. r?mossop MozReview-Commit-ID: 1pDfFN3NxrF
toolkit/components/url-classifier/tests/gtest/TestFailUpdate.cpp
--- 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;