[new downloader] Fix platform tests for running on device

This commit is contained in:
Sergey Yershov 2016-02-12 15:04:57 +03:00
parent 7723fe1c08
commit 6a219559a4

View file

@ -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));