OLD | NEW |
| (Empty) |
1 // Copyright 2010 The Native Client Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can | |
3 // be found in the LICENSE file. | |
4 | |
5 using System.Runtime.InteropServices; | |
6 using Google.MsAd7.BaseImpl; | |
7 using Microsoft.VisualStudio; | |
8 using Microsoft.VisualStudio.Debugger.Interop; | |
9 | |
10 namespace NaClVsx.Package_UnitTestProject { | |
11 public class BreakpointRequestMock : IDebugBreakpointRequest2 { | |
12 | |
13 #region IDebugBreakpointRequest2 Members | |
14 | |
15 public int GetLocationType(enum_BP_LOCATION_TYPE[] pBpLocationType) { | |
16 pBpLocationType[0] = enum_BP_LOCATION_TYPE.BPLT_FILE_LINE; | |
17 return VSConstants.S_OK; | |
18 } | |
19 | |
20 public int GetRequestInfo(enum_BPREQI_FIELDS dwFields, | |
21 BP_REQUEST_INFO[] pBPRequestInfo) { | |
22 pBPRequestInfo[0] = new BP_REQUEST_INFO { | |
23 bpLocation = { | |
24 bpLocationType = (uint) enum_BP_LOCATION_TYPE.BPLT_CODE_FILE_LINE, | |
25 unionmember2 = Marshal.GetIUnknownForObject( | |
26 new DocumentPosition("C:\\test\\path", 123)) | |
27 } | |
28 }; | |
29 | |
30 return VSConstants.S_OK; | |
31 } | |
32 | |
33 #endregion | |
34 } | |
35 } | |
OLD | NEW |