コード例 #1
0
 public Putter(TestCallQueueManager _enclosing, CallQueueManager <TestCallQueueManager.FakeCall
                                                                  > aCq, int maxCalls, int tag)
 {
     this._enclosing = _enclosing;
     // How many calls we added, accurate unless interrupted
     this.maxCalls = maxCalls;
     this.cq       = aCq;
     this.tag      = tag;
 }
コード例 #2
0
 public Taker(TestCallQueueManager _enclosing, CallQueueManager <TestCallQueueManager.FakeCall
                                                                 > aCq, int maxCalls, int tag)
 {
     this._enclosing = _enclosing;
     // if >= 0 means we will only take the matching tag, and put back
     // anything else
     // total calls taken, accurate if we aren't interrupted
     // the last thing we took
     // maximum calls to take
     this.maxCalls = maxCalls;
     this.cq       = aCq;
     this.tag      = tag;
 }
コード例 #3
0
 public FakeCall(TestCallQueueManager _enclosing, int tag)
 {
     this._enclosing = _enclosing;
     // Can be used for unique identification
     this.tag = tag;
 }