| | 1 | | using AssetPromiseKeeper_Tests; |
| | 2 | | using DCL; |
| | 3 | | using DCL.Helpers; |
| | 4 | | using System.Collections; |
| | 5 | | using UnityEngine.TestTools; |
| | 6 | | using UnityGLTF; |
| | 7 | |
|
| | 8 | | namespace AssetPromiseKeeper_GLTF_Tests |
| | 9 | | { |
| | 10 | | public class APK_GLTF_ShouldWorkWhen : |
| | 11 | | APKWithPoolableAssetShouldWorkWhen_Base<AssetPromiseKeeper_GLTF, |
| | 12 | | AssetPromise_GLTF, |
| | 13 | | Asset_GLTF, |
| | 14 | | AssetLibrary_GLTF> |
| | 15 | | { |
| | 16 | | protected ContentProvider contentProvider; |
| | 17 | |
|
| | 18 | | [UnitySetUp] |
| | 19 | | protected override IEnumerator SetUp() |
| | 20 | | { |
| 7 | 21 | | yield return base.SetUp(); |
| 7 | 22 | | contentProvider = new ContentProvider(); |
| 7 | 23 | | GLTFSceneImporter.budgetPerFrameInMilliseconds = float.MaxValue; |
| 7 | 24 | | } |
| | 25 | |
|
| | 26 | | protected override AssetPromise_GLTF CreatePromise() |
| | 27 | | { |
| 11 | 28 | | string url = TestAssetsUtils.GetPath() + "/GLB/Lantern/Lantern.glb"; |
| 11 | 29 | | var prom = new AssetPromise_GLTF(contentProvider, url); |
| 11 | 30 | | return prom; |
| | 31 | | } |
| | 32 | | } |
| | 33 | | } |