From 6a219559a49ffab096c53b7e06d21cf59b66c7a5 Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Fri, 12 Feb 2016 15:04:57 +0300 Subject: [PATCH] [new downloader] Fix platform tests for running on device --- platform/platform_tests/platform_test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/platform_tests/platform_test.cpp b/platform/platform_tests/platform_test.cpp index 703089df5f..d791c14fb7 100644 --- a/platform/platform_tests/platform_test.cpp +++ b/platform/platform_tests/platform_test.cpp @@ -180,15 +180,16 @@ UNIT_TEST(GetFileSize) TEST(!pl.GetFileSizeByName("adsmngfuwrbfyfwe", size), ()); TEST(!pl.IsFileExistsByFullPath("adsmngfuwrbfyfwe"), ()); + string const fileName = pl.WritablePathForFile(TEST_FILE_NAME); { - FileWriter testFile(TEST_FILE_NAME); + FileWriter testFile(fileName); testFile.Write("HOHOHO", 6); } size = 0; - TEST(Platform::GetFileSizeByFullPath(TEST_FILE_NAME, size), ()); + TEST(Platform::GetFileSizeByFullPath(fileName, size), ()); TEST_EQUAL(size, 6, ()); - FileWriter::DeleteFileX(TEST_FILE_NAME); + FileWriter::DeleteFileX(fileName); { FileWriter testFile(pl.WritablePathForFile(TEST_FILE_NAME));