////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
        {
            //
            // Gets the port supplier for this port.
            //

            LoggingUtils.PrintFunction();

            ppSupplier = m_portSupplier;

            return(Constants.S_OK);
        }
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public DebuggeePort(IDebugPortSupplier2 portSupplier, AndroidDevice device)
        {
            m_portSupplier = portSupplier ?? throw new ArgumentNullException(nameof(portSupplier));

            m_portDevice = device ?? throw new ArgumentNullException(nameof(device));

            m_portGuid = Guid.NewGuid();

            m_portProcesses = new Dictionary <uint, DebuggeeProcess> ();

            m_eventConnectionPoints = new Dictionary <int, IDebugPortEvents2> ();
        }
Example #3
0
 DebugPort(DebugProcess.Factory debugProcessFactory,
           ProcessListRequest.Factory processListRequestFactory,
           CancelableTask.Factory cancelableTaskFactory, IDialogUtil dialogUtil,
           ISshManager sshManager, IMetrics metrics, Gamelet gamelet,
           IDebugPortSupplier2 supplier, string debugSessionId, string developerAccount)
 {
     _debugProcessFactory       = debugProcessFactory;
     _processListRequestFactory = processListRequestFactory;
     _dialogUtil            = dialogUtil;
     _guid                  = Guid.NewGuid();
     _supplier              = supplier;
     _developerAccount      = developerAccount;
     _cancelableTaskFactory = cancelableTaskFactory;
     _sshManager            = sshManager;
     _debugSessionMetrics   = new DebugSessionMetrics(metrics);
     _debugSessionMetrics.DebugSessionId = debugSessionId;
     _actionRecorder = new ActionRecorder(_debugSessionMetrics);
     Gamelet         = gamelet;
 }
Example #4
0
        public void SetUp()
        {
            _processFactory = Substitute.For <DebugProcess.Factory>();
            _dialogUtil     = Substitute.For <IDialogUtil>();
            _sshManager     = Substitute.For <ISshManager>();

            _processListRequest = Substitute.For <IProcessListRequest>();
            var processListRequestFactory = Substitute.For <ProcessListRequest.Factory>();

            processListRequestFactory.Create().Returns(_processListRequest);

            var cancelableTaskFactory =
                FakeCancelableTask.CreateFactory(new JoinableTaskContext(), false);

            _metrics = Substitute.For <IMetrics>();

            _portFactory = new DebugPort.Factory(_processFactory, processListRequestFactory,
                                                 cancelableTaskFactory, _dialogUtil, _sshManager,
                                                 _metrics, _reserverAccount);
            _portSupplier = Substitute.For <IDebugPortSupplier2>();
        }
Example #5
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public DebuggeePort(IDebugPortSupplier2 portSupplier, AndroidDevice device)
        {
            if (portSupplier == null)
            {
                throw new ArgumentNullException("portSupplier");
            }

            if (device == null)
            {
                throw new ArgumentNullException("device");
            }

            m_portSupplier = portSupplier;

            m_portDevice = device;

            m_portGuid = Guid.NewGuid();

            m_portProcesses = new Dictionary <uint, DebuggeeProcess> ();

            m_eventConnectionPoints = new Dictionary <int, IDebugPortEvents2> ();
        }
Example #6
0
 int IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     ppSupplier = _portSupplier;
     return(VSConstants.S_OK);
 }
Example #7
0
 int IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     throw new NotImplementedException();
 }
 int Microsoft.VisualStudio.Debugger.Interop.IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     ppSupplier = m_portSupplier;
     return(Utility.COM_HResults.S_OK);
 }
Example #9
0
 // Token: 0x06000146 RID: 326 RVA: 0x000059F5 File Offset: 0x00003BF5
 public int GetPortSupplier(out IDebugPortSupplier2 portSupplier)
 {
     portSupplier = this.PortSupplier;
     return(0);
 }
Example #10
0
 public virtual IDebugPort2 Create(
     Gamelet gamelet, IDebugPortSupplier2 supplier, string debugSessionId) =>
 new DebugPort(_debugProcessFactory, _processListRequestFactory,
               _cancelableTaskFactory, _dialogUtil, _sshManager, _metrics, gamelet,
               supplier, debugSessionId, _developerAccount);
Example #11
0
 public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     throw new NotImplementedException();
 }
Example #12
0
 /// <summary>
 /// Gets the port supplier for this port.
 /// </summary>
 public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "DebugPort.GetPortSupplier");
     ppSupplier = supplier;
     return VSConstants.S_OK;
 }
Example #13
0
 /// <summary>
 /// Gets the port supplier for this port.
 /// </summary>
 public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "DebugPort.GetPortSupplier");
     ppSupplier = supplier;
     return(VSConstants.S_OK);
 }
Example #14
0
 int Microsoft.VisualStudio.Debugger.Interop.IDebugPort2.GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     ppSupplier = m_portSupplier;
     return Utility.COM_HResults.S_OK;
 }
 public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     ppSupplier = supplier;
     return(Microsoft.VisualStudio.VSConstants.S_OK);
 }
Example #16
0
 /// <summary>
 /// Gets the port supplier for this port.
 /// </summary>
 /// <param name="ppSupplier">Returns an IDebugPortSupplier2 object represents the port supplier for a port.</param>
 /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
 public virtual int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     Logger.Debug(string.Empty);
     ppSupplier = null;
     return(VSConstants.E_NOTIMPL);
 }
Example #17
0
 public EmuliciousPort(IDebugPortSupplier2 supplier)
 {
     portGuid = new Guid();
 }
Example #18
0
 public int GetPortSupplier(out IDebugPortSupplier2 portSupplier)
 {
     portSupplier = _portSupplier;
     return HR.S_OK;
 }
Example #19
0
 public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     throw new NotImplementedTestDoubleException();
 }
Example #20
0
 public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier)
 {
     ppSupplier = _supplier;
     return(VSConstants.S_OK);
 }
 public int GetPortSupplier(out IDebugPortSupplier2 ppSupplier) {
     ppSupplier = _supplier;
     return VSConstants.S_OK;
 }
Example #22
0
 public int GetPortSupplier(out IDebugPortSupplier2 portSupplier)
 {
     portSupplier = _portSupplier;
     return(HR.S_OK);
 }
Example #23
0
 /// <summary>
 /// Gets the port supplier for this port.
 /// </summary>
 /// <param name="ppSupplier">Returns an IDebugPortSupplier2 object represents the port supplier for a port.</param>
 /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns>
 public virtual int GetPortSupplier( out IDebugPortSupplier2 ppSupplier )
 {
     Logger.Debug( string.Empty );
     ppSupplier = null;
     return VSConstants.E_NOTIMPL;
 }