class LocalStreamBackend

Defined at line 26 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

This class is meant to receive the raw messages outputted by the debug agent.

The agent's stream calls this backend to output the data and verifies that

all the content is sent.

We use this class to intercept the messages sent back from the agent and

react accordingly. This class is somwhat geared towards tests, mainly in the sense that

notification handlers are needed as they're needed.

Public Methods

void LocalStreamBackend ()

Defined at line 15 of file ../../src/developer/debug/debug_agent/local_stream_backend.cc

void ~LocalStreamBackend ()

Defined at line 17 of file ../../src/developer/debug/debug_agent/local_stream_backend.cc

size_t ConsumeStreamBufferData (const char * data, size_t len)

The stream will call this function to send the data to whatever backend it

is connected to. It returns how much of the input message it could actually

write. For this tests purposes, we always read the whole message.

Defined at line 19 of file ../../src/developer/debug/debug_agent/local_stream_backend.cc

void HandleAttach (debug_ipc::AttachReply )

Message dispatcher interface.

This should be overriden by every test interested in a particular set of

messages. By default they do nothing.

Defined at line 34 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyComponentDiscovered (debug_ipc::NotifyComponentDiscovered )

Defined at line 35 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyComponentStarting (debug_ipc::NotifyComponentStarting )

Defined at line 36 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyException (debug_ipc::NotifyException )

Defined at line 37 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyFilterCreated (debug_ipc::NotifyFilterCreated )

Defined at line 38 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyIO (debug_ipc::NotifyIO )

Defined at line 39 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyModules (debug_ipc::NotifyModules )

Defined at line 40 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyProcessExiting (debug_ipc::NotifyProcessExiting )

Defined at line 41 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyProcessStarting (debug_ipc::NotifyProcessStarting )

Defined at line 42 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyThreadExiting (debug_ipc::NotifyThreadExiting )

Defined at line 43 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyThreadStarting (debug_ipc::NotifyThreadStarting )

Defined at line 44 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

void HandleNotifyLog (debug_ipc::NotifyLog )

Defined at line 45 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

bool Start ()

BufferedStream implementation.

Defined at line 48 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

bool Stop ()

Defined at line 49 of file ../../src/developer/debug/debug_agent/local_stream_backend.h

bool IsValid ()

Defined at line 50 of file ../../src/developer/debug/debug_agent/local_stream_backend.h