diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2016-02-12 15:04:57 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:22:09 +0300 |
commit | 6a219559a49ffab096c53b7e06d21cf59b66c7a5 (patch) | |
tree | 33e34bd7910744c8e633576512558d5edd1ae81a /platform | |
parent | 7723fe1c086a852dc0681d4b5c6aa6a43314c1da (diff) |
[new downloader] Fix platform tests for running on device
Diffstat (limited to 'platform')
-rw-r--r-- | platform/platform_tests/platform_test.cpp | 7 |
1 files 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)); |