Exemplo n.º 1
0
 void OnForegroundNotification(TeakNotification notification)
 {
     if (this.testEnumerator != null)
     {
         this.testEnumerator.Current.ForegroundNotification(notification);
     }
 }
Exemplo n.º 2
0
 void OnLaunchedFromNotification(TeakNotification notification)
 {
     if (this.testEnumerator != null)
     {
         this.testEnumerator.Current.LaunchedFromNotification(notification);
     }
 }
Exemplo n.º 3
0
    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");
 }
Exemplo n.º 5
0
 public void ForegroundNotification(TeakNotification notification)
 {
     this.EvaluatePredicate(this.OnForegroundNotification, notification, (TestState state) => {
         this.foregroundNotification = state;
     });
 }
Exemplo n.º 6
0
 public void LaunchedFromNotification(TeakNotification notification)
 {
     this.EvaluatePredicate(this.OnLaunchedFromNotification, notification, (TestState state) => {
         this.launchedFromNotification = state;
     });
 }