class DebugAdapterContextTest
Defined at line 75 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.h
Test harness that sets up a RemoteAPITest (mocked target by replacing IPC) with a
DebugAdapterContext and a debug adapter client session using the cppdap library.
DebugAdapterContext is connected to the client via TestPipe.
Client session can be used to send requests to DebugAdapterContext:
auto response = client().send(dap::InitializeRequest{});
And then invoke context() to process incoming request:
context().OnStreamReadable();
Lastly invoke client() to receive the response:
RunClient();
auto got = response.get();
Public Members
static const uint64_t kProcessKoid
static const uint64_t kThreadKoid
Public Methods
void InitializeDebugging ()
Helper method to set up debug adapter session between client and server.
Defined at line 52 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.cc
void SetUp ()
testing::Test implementation.
Defined at line 23 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.cc
void TearDown ()
Defined at line 36 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.cc
void SetUpConnectedContext ()
Sets up the context to appear to be connected to the debug target.
Defined at line 43 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.cc
DebugAdapterContext & context ()
Defined at line 81 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.h
dap::Session & client ()
Defined at line 82 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.h
void RunClient ()
Defined at line 84 of file ../../src/developer/debug/zxdb/debug_adapter/context_test.h