Files
RaindropViewer/Assets/Tests/DiskAndCache/DiskTests.cs
T
2022-01-22 03:02:58 +08:00

24 lines
1.1 KiB
C#

using NUnit.Framework;
using UnityEngine;
namespace Raindrop.Tests.DiskAndCache
{
public class DiskTests
{
// fixme: after implementing on-sd/on-device caching preferences
[Test]
public void printImportantPaths_Platforms()
{
Debug.Log("Application.persistentDataPath, usually the internal SD for android" + Application.persistentDataPath);
// should be /storage/emulated/0/Android/data/com.UnityTestRunner.UnityTestRunner/files/Pictures/
Debug.Log("Application.dataPath, usually not usable for cache " + Application.dataPath);
// Debug.Log("GetAndroidExternalFilesDir internal"+ Disk.DirectoryHelpers.GetAndroidExternalFilesDir(true));
// should be /storage/6106-8710/Android/data/com.UnityTestRunner.UnityTestRunner/files
// Debug.Log("GetAndroidExternalFilesDir prefersdcard"+ Disk.DirectoryHelpers.GetAndroidExternalFilesDir(false));
//should be /storage/emulated/0/Android/data/com.UnityTestRunner.UnityTestRunner/files/Pictures/
}
}
}