Android-cuttlefish cvd tool
Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ModemServiceTest Class Reference
Inheritance diagram for ModemServiceTest:
Inheritance graph
[legend]
Collaboration diagram for ModemServiceTest:
Collaboration graph
[legend]

Protected Member Functions

void SendCommand (std::string command, std::string prefix="")
 
void ReadCommandResponse (std::vector< std::string > &response)
 
bool IsFinalResponseSuccess (std::string response)
 
bool IsFinalResponseError (std::string response)
 
bool IsIntermediateResponse (std::string response)
 
int openLogicalChannel (std::string &name)
 
bool closeLogicalChannel (int channel)
 

Static Protected Member Functions

static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 

Protected Attributes

const std::vector< std::string > kFinalResponseSuccess = {"OK", "CONNECT", "> "}
 
const std::vector< std::string > kFinalResponseError
 
std::string command_prefix_
 

Static Protected Attributes

static Clientril_side_ = nullptr
 
static Clientmodem_side_ = nullptr
 
static ModemSimulatormodem_simulator_ = nullptr
 

Member Function Documentation

◆ closeLogicalChannel()

bool ModemServiceTest::closeLogicalChannel ( int  channel)
inlineprotected

◆ IsFinalResponseError()

bool ModemServiceTest::IsFinalResponseError ( std::string  response)
inlineprotected

◆ IsFinalResponseSuccess()

bool ModemServiceTest::IsFinalResponseSuccess ( std::string  response)
inlineprotected

◆ IsIntermediateResponse()

bool ModemServiceTest::IsIntermediateResponse ( std::string  response)
inlineprotected

◆ openLogicalChannel()

int ModemServiceTest::openLogicalChannel ( std::string &  name)
inlineprotected

◆ ReadCommandResponse()

void ModemServiceTest::ReadCommandResponse ( std::vector< std::string > &  response)
inlineprotected

◆ SendCommand()

void ModemServiceTest::SendCommand ( std::string  command,
std::string  prefix = "" 
)
inlineprotected

◆ SetUpTestSuite()

static void ModemServiceTest::SetUpTestSuite ( )
inlinestaticprotected

◆ TearDownTestSuite()

static void ModemServiceTest::TearDownTestSuite ( )
inlinestaticprotected

Member Data Documentation

◆ command_prefix_

std::string ModemServiceTest::command_prefix_
protected

◆ kFinalResponseError

const std::vector<std::string> ModemServiceTest::kFinalResponseError
protected
Initial value:
= {
"ERROR",
"+CMS ERROR:",
"+CME ERROR:",
"NO CARRIER",
"NO ANSWER",
"NO DIALTONE",
}

◆ kFinalResponseSuccess

const std::vector<std::string> ModemServiceTest::kFinalResponseSuccess = {"OK", "CONNECT", "> "}
protected

◆ modem_side_

Client * ModemServiceTest::modem_side_ = nullptr
staticprotected

◆ modem_simulator_

ModemSimulator * ModemServiceTest::modem_simulator_ = nullptr
staticprotected

◆ ril_side_

Client * ModemServiceTest::ril_side_ = nullptr
staticprotected

The documentation for this class was generated from the following file: