class MockSymbolFactory

Defined at line 24 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_factory.h

Symbols have a backpointer to their SymbolFactory, yet the mock symbol factory must contain

owning references to the symbols it vends. This creates a reference cycle that will leak.

To get around this, the MockSymbolFactory is not actually a SymbolFactory implementation, but a

non-reference-counted wrapper object you should create on the stack (or as a member of your test

harness). It will clear all of the symbol references in the actual SymbolFactory implementation

when it goes out of scope, breaking the reference cycle.

Public Methods

void MockSymbolFactory ()

Defined at line 26 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_factory.h

void ~MockSymbolFactory ()

Defined at line 27 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_factory.h

fxl::RefPtr<SymbolFactory> factory_ref ()

Defined at line 32 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_factory.h

SymbolFactory * factory ()

Defined at line 33 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_factory.h

const SymbolFactory * factory ()

Defined at line 34 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_factory.h

void SetMockSymbol (uint64_t die_offset, fxl::RefPtr<Symbol> symbol)

Defined at line 36 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_factory.h