Bug 1428258 - Stop using GetNativePath in url-classifier. r?mossop draft
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sat, 16 Dec 2017 22:48:29 +0900
changeset 757046 2119718567341aa84e7a45308953edfadb6ca872
parent 757045 d2793a397fa61d90b4916ee026ff0a6a33a44fd3
child 757047 4c8c42a4043e60d757e3d83167bc8719a9ce2213
push id99632
push userVYV03354@nifty.ne.jp
push dateMon, 19 Feb 2018 17:31:15 +0000
reviewersmossop
bugs1428258
milestone60.0a1
Bug 1428258 - 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->HumanReadablePath().get();
   }
 }
 
 TEST(FailUpdate, CheckTableReset)
 {
   const bool FULL_UPDATE = true;
   const bool PARTIAL_UPDATE = false;