class MockStackDelegate
Defined at line 28 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
A mock Stack::Delegate implementation that just passes through frames. You must call set_stack()
after creating the Stack that uses this.
Example:
MockStackDelegate delegate(
&session
);
Stack stack(
&delegate
);
delegate.set_stack(
&stack
);
stack.SetFramesForTest(...);
Public Methods
void MockStackDelegate (Session * session)
Defined at line 30 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
void set_stack (Stack * s)
Defined at line 32 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
void AddLocation (const Location & loc)
Adds the given location to the list of things returned by GetSymbolizedLocationForAddress().
Defined at line 35 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
void SetAsyncFrames (std::vector<std::unique_ptr<Frame>> frames)
Sets the asynchronous resource to SyncFramesForStack(). Since this transfers ownership, it will
only affect the next call.
Defined at line 39 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
void SyncFramesForStack (const Stack::SyncFrameOptions & options, fit::callback<void (const Err &)> cb)
Defined at line 43 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
std::unique_ptr<Frame> MakeFrameForStack (const debug_ipc::StackFrame & input, Location location)
Defined at line 51 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
Location GetSymbolizedLocationForAddress (uint64_t address)
Defined at line 56 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
void DidUpdateStackFrames ()
Defined at line 63 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h
int update_count ()
Defined at line 65 of file ../../src/developer/debug/zxdb/client/mock_stack_delegate.h