-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [1.0.0-preview.2] - 2018-12-19 * Fix CI build tooling to correct (new) validation issues. ## [1.0.0-preview.1] - 2018-12-19 * Fix loader helper to support integrated and standlone subsystem loading. * Tagging build as 1.0.0 preview to note that this should be feature complete for 1.0.
- Loading branch information
Unity Technologies
committed
Dec 18, 2018
1 parent
b2efca7
commit 26b6c3d
Showing
35 changed files
with
380 additions
and
121 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
{ | ||
"displayName":"Example XR Management implementation", | ||
"description": "Example code showing how to implement various portions of the XR Management API.", | ||
"createSeparatePackage": false | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"createSeparatePackage": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,70 @@ | ||
using UnityEngine; | ||
using System; | ||
using System.Collections; | ||
|
||
using NUnit.Framework; | ||
|
||
using UnityEditor; | ||
|
||
using UnityEngine; | ||
using UnityEngine.TestTools; | ||
using NUnit.Framework; | ||
using System.Collections; | ||
|
||
namespace ManagmentTests.Editor | ||
using Unity.XR.Management.Tests.Standalone; | ||
using Unity.XR.Management.Tests.Standalone.Providing; | ||
|
||
namespace Unity.XR.Management.EditorTests | ||
{ | ||
class EditorTests | ||
{ | ||
[OneTimeSetUp] | ||
public void OneTimeSetUp() | ||
{ | ||
StandaloneSubsystemParams parms = new StandaloneSubsystemParams("Standalone Subsystem", typeof(StandaloneSubsystem)); | ||
StandaloneSubsystemDescriptor.Create(parms); | ||
} | ||
|
||
StandaloneLoader loader; | ||
|
||
[SetUp] | ||
public void SetUp() | ||
{ | ||
loader = ScriptableObject.CreateInstance<StandaloneLoader>() as StandaloneLoader; | ||
} | ||
|
||
[TearDown] | ||
public void TearDown() | ||
{ | ||
UnityEngine.Object.DestroyImmediate(loader); | ||
loader = null; | ||
} | ||
|
||
[Test] | ||
public void EditorSampleTestSimplePasses() | ||
public void StandaloneLoaderCreateTest() | ||
{ | ||
// Use the Assert class to test conditions. | ||
Assert.IsTrue(loader.Initialize()); | ||
} | ||
|
||
// A UnityTest behaves like a coroutine in PlayMode | ||
// and allows you to yield null to skip a frame in EditMode | ||
[UnityTest] | ||
public IEnumerator EditorSampleTestWithEnumeratorPasses() | ||
public IEnumerator StandaloneLoaderLifecycleTest() | ||
{ | ||
// Use the Assert class to test conditions. | ||
// yield to skip a frame | ||
Assert.IsTrue(loader.Initialize()); | ||
yield return null; | ||
|
||
Assert.IsTrue(loader.Start()); | ||
Assert.IsTrue(loader.started); | ||
yield return null; | ||
|
||
|
||
Assert.IsTrue(loader.Stop()); | ||
Assert.IsTrue(loader.stopped); | ||
yield return null; | ||
|
||
|
||
Assert.IsTrue(loader.Deinitialize()); | ||
Assert.IsTrue(loader.deInitialized); | ||
yield return null; | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.