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 754865 2185f0e2feb4cbd887613be6f988036dd3d54669
parent 754864 faff0d76f366435345dd8cfc4743bc0ed5622897
child 754866 b433701677d98d0c7dceaa93e41edb30e7a8cfed
push id99020
push userVYV03354@nifty.ne.jp
push dateWed, 14 Feb 2018 12:33:05 +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;