コード例 #1
0
ファイル: TestContext.cs プロジェクト: tes001/TSS.MSR
 internal TestContext(TestLogger logger, int instance,
                      bool validateTestAttributes,
                      ICommandCallbacks callbacks = null)
 {
     Logger   = logger;
     Instance = instance;
     ValidateTestAttributes = validateTestAttributes;
     ChainedCallbacks       = callbacks;
 }
コード例 #2
0
        internal TestContext NewContext(bool validateTestAttributes = false,
                                        ICommandCallbacks callbacks = null)
        {
            int index  = System.Threading.Interlocked.Increment(ref InstanceCount) - 1;
            var newCtx = new TestContext(this, index, validateTestAttributes, callbacks);

            // Mark the current TPM commands execution span as belonging to the
            // Tpm2Tester infrastructure
            newCtx.TestStarted(LibTesterInfraName);
            return(newCtx);
        }
コード例 #3
0
 public void SetCommandCallbacks(ICommandCallbacks callbacks)
 {
     CommandCallbacks = callbacks;
 }