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 using System; | |
5 using System.Collections.Generic; | |
6 using Google.MsAd7.BaseImpl; | |
7 using Google.MsAd7.BaseImpl.Interfaces; | |
8 using Google.MsAd7.BaseImpl.Interfaces.SimpleSymbolTypes; | |
9 using Google.MsAd7.BaseImpl.TestUtils; | |
10 | |
11 namespace MsAd7.BaseImpl_UnitTestProject { | |
12 public class SymbolProviderMock : MockBase, ISimpleSymbolProvider { | |
13 #region ISimpleSymbolProvider Members | |
14 | |
15 /// <summary> | |
16 /// Throws KeyNotFoundException if the call cannot be validated by the | |
17 /// mock. | |
18 /// </summary> | |
19 /// <param name="pos"></param> | |
20 /// <returns></returns> | |
21 public IEnumerable<ulong> AddressesFromPosition(DocumentPosition pos) { | |
22 return CheckCall<DocumentPosition, IEnumerable<ulong>>( | |
23 "AddressesFromPosition", pos); | |
24 } | |
25 | |
26 public DocumentPosition PositionFromAddress(ulong address) { | |
27 return CheckCall<ulong, DocumentPosition>("PositionFromAddress", address); | |
28 } | |
29 | |
30 public IBreakpointInfo GetBreakpointInfo() { | |
31 throw new NotImplementedException(); | |
32 } | |
33 | |
34 public ulong GetBaseAddress() { | |
35 throw new NotImplementedException(); | |
36 } | |
37 | |
38 public IEnumerable<Symbol> GetSymbolsInScope(ulong instructionAddress) { | |
39 return CheckCall<ulong, IEnumerable<Symbol>>( | |
40 "GetSymbolsInScope", instructionAddress); | |
41 } | |
42 | |
43 public IEnumerable<ulong> GetAddressesInScope(ulong programCounter) { | |
44 throw new NotImplementedException(); | |
45 } | |
46 | |
47 public string SymbolValueToString(ulong key, ArraySegment<byte> arrBytes) { | |
48 throw new NotImplementedException(); | |
49 } | |
50 | |
51 public Function FunctionFromAddress(ulong address) { | |
52 return CheckCall<ulong, Function>("FunctionFromAddress", address); | |
53 } | |
54 | |
55 public FunctionDetails GetFunctionDetails(Function fn) { | |
56 throw new NotImplementedException(); | |
57 } | |
58 | |
59 public bool LoadModule(string path, ulong loadOffset, out string status) { | |
60 throw new NotImplementedException(); | |
61 } | |
62 | |
63 public ulong GetNextLocation(ulong addr) { | |
64 throw new NotImplementedException(); | |
65 } | |
66 | |
67 #endregion | |
68 } | |
69 } | |
OLD | NEW |