class ThreadControllerTest
Defined at line 25 of file ../../src/developer/debug/zxdb/client/thread_controller_test.h
This test harness automatically makes a process and a thread
Many tests can be written using this setup entirely. When symbols are needed they can be injected
into the MockModuleSymbols. If more elaborate symbol mocking is desired, a derived class can
override MakeModuleSymbols() and provide a custom implementation.
Public Members
static const uint64_t kUnsymbolizedModuleAddress
static const uint64_t kSymbolizedModuleAddress
Public Methods
void ThreadControllerTest ()
Defined at line 22 of file ../../src/developer/debug/zxdb/client/thread_controller_test.cc
void ~ThreadControllerTest ()
Defined at line 23 of file ../../src/developer/debug/zxdb/client/thread_controller_test.cc
void SetUp ()
Defined at line 25 of file ../../src/developer/debug/zxdb/client/thread_controller_test.cc
Process * process ()
Defined at line 32 of file ../../src/developer/debug/zxdb/client/thread_controller_test.h
Thread * thread ()
Defined at line 33 of file ../../src/developer/debug/zxdb/client/thread_controller_test.h
MockModuleSymbols * module_symbols ()
The mock module symbols. Addresses above kSymbolizedModuleAddress will be handled by this mock.
Test code should inject the responses it wants into this mock. Derived classes can provide
their own implementation by overriding MakeModuleSymbols().
Defined at line 46 of file ../../src/developer/debug/zxdb/client/thread_controller_test.h
MockModuleSymbols * unsymbolized_module_symbols ()
The mock module symbols for the unsymbolized module. An unsymbolized module will normally
still have some ELF/PLT symbols.
Defined at line 50 of file ../../src/developer/debug/zxdb/client/thread_controller_test.h
Protected Methods
fxl::RefPtr<MockModuleSymbols> MakeModuleSymbols ()
Makes the MockModuleSymbols object used for the symbolized module.
Derived classes can also provide a derived MockModuleSymbols implementation to implement
more complex custom behavior.
Defined at line 59 of file ../../src/developer/debug/zxdb/client/thread_controller_test.cc