void OnForegroundNotification(TeakNotification notification)
 {
     if (this.testEnumerator != null)
     {
         this.testEnumerator.Current.ForegroundNotification(notification);
     }
 }
 void OnLaunchedFromNotification(TeakNotification notification)
 {
     if (this.testEnumerator != null)
     {
         this.testEnumerator.Current.LaunchedFromNotification(notification);
     }
 }
    private Action <Action <Test.TestState> > ScheduleNotification(string creativeId, bool backgroundApp)
    {
        return((Action <Test.TestState> state) => {
            testDriver.StartCoroutine(TeakNotification.ScheduleNotification(creativeId, this.test.Name, 5, (TeakNotification.Reply reply) => {
                // if (reply.Notifications[0].ScheduleId == null)
                // {
                //     errorText = "ScheduleId was null";
                // }
                state(reply.Status == TeakNotification.Reply.ReplyStatus.Ok ? Test.TestState.Passed : Test.TestState.Failed);

                if (backgroundApp)
                {
                    Utils.BackgroundApp();
                }
            }));
        });
    }
 void OnLaunchedFromNotification(TeakNotification notification)
 {
     Debug.Log("[Teak Unity Cleanroom] OnLaunchedFromNotification: " + notification.ToString());
     LogLaunchMatrixEvent("Notification");
 }
Esempio n. 5
0
 public void ForegroundNotification(TeakNotification notification)
 {
     this.EvaluatePredicate(this.OnForegroundNotification, notification, (TestState state) => {
         this.foregroundNotification = state;
     });
 }
Esempio n. 6
0
 public void LaunchedFromNotification(TeakNotification notification)
 {
     this.EvaluatePredicate(this.OnLaunchedFromNotification, notification, (TestState state) => {
         this.launchedFromNotification = state;
     });
 }