OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:IcmpSession
(Results
1 - 10
of
10
) sorted by null
/system/connectivity/shill/
mock_icmp_session.cc
22
:
IcmpSession
(dispatcher) {}
icmp_session.cc
38
static std::string ObjectID(
IcmpSession
* i) { return "(icmp_session)"; }
41
uint16_t
IcmpSession
::kNextUniqueEchoId = 0;
42
const int
IcmpSession
::kTotalNumEchoRequests = 3;
43
const int
IcmpSession
::kEchoRequestIntervalSeconds = 1; // default for ping
46
const size_t
IcmpSession
::kTimeoutSeconds =
49
IcmpSession
::
IcmpSession
(EventDispatcher* dispatcher)
56
echo_reply_callback_(Bind(&
IcmpSession
::OnEchoReplyReceived,
58
// Each
IcmpSession
will have a unique echo ID to identify requests and reply
63
IcmpSession
::~IcmpSession()
[
all
...]
icmp_session_factory.cc
33
IcmpSession
* IcmpSessionFactory::CreateIcmpSession(
35
return new
IcmpSession
(dispatcher);
mock_icmp_session.h
28
class MockIcmpSession : public
IcmpSession
{
36
const
IcmpSession
::IcmpSessionResultCallback& result_callback));
icmp_session_factory.h
33
virtual
IcmpSession
* CreateIcmpSession(EventDispatcher* dispatcher);
mock_icmp_session_factory.h
34
MOCK_METHOD1(CreateIcmpSession,
IcmpSession
*(EventDispatcher* dispatcher));
icmp_session.h
49
// The
IcmpSession
class encapsulates the task of performing a stateful exchange
52
//
IcmpSession
object only allows one ICMP session to be running at one time.
54
//
IcmpSession
objects.
55
class
IcmpSession
{
65
explicit
IcmpSession
(EventDispatcher* dispatcher);
67
// We always call
IcmpSession
::Stop in the destructor to clean up, in case an
69
virtual ~
IcmpSession
();
105
static uint16_t kNextUniqueEchoId; // unique across
IcmpSession
objects
126
//
IcmpSession
. This function is called when the ICMP session successfully
131
base::WeakPtrFactory<
IcmpSession
> weak_ptr_factory_
[
all
...]
icmp_session_unittest.cc
39
//
IcmpSession
::OnEchoReplyReceived expects to receive a raw IP packet.
84
IcmpSession
::kNextUniqueEchoId = 0;
87
MOCK_METHOD1(ResultCallback, void(const
IcmpSession
::IcmpSessionResult&));
145
IcmpSession
::IcmpSessionResult GenerateIcmpResult() {
149
std::map<uint16_t,
IcmpSession
::SentRecvTimePair>* GetSeqNumToSentRecvTime() {
156
return
IcmpSession
::kNextUniqueEchoId;
159
return
IcmpSession
::kTotalNumEchoRequests;
167
size_t GetTimeoutSeconds() const { return
IcmpSession
::kTimeoutSeconds; }
169
return
IcmpSession
::kEchoRequestIntervalSeconds;
174
IcmpSession
icmp_session_
[
all
...]
connection_diagnostics.h
42
class
IcmpSession
;
272
// Starts an
IcmpSession
with |address|. Called when we want to ping the
276
// Called after each
IcmpSession
started in
289
// Called after the
IcmpSession
started in ConnectionDiagnostics::PingHost on
292
// is the result of the
IcmpSession
.
350
std::unique_ptr<
IcmpSession
> icmp_session_;
358
std::map<int, std::unique_ptr<
IcmpSession
>>
connection_diagnostics.cc
168
icmp_session_(new
IcmpSession
(dispatcher_)),
400
i, std::unique_ptr<
IcmpSession
>(
605
//
IcmpSession
started with a unique |dns_server_index| value in
616
if (
IcmpSession
::AnyRepliesReceived(result)) {
707
IcmpSession
::AnyRepliesReceived(result) ? kResultSuccess : kResultFailure;
708
if (
IcmpSession
::IsPacketLossPercentageGreaterThan(result, 50)) {
[
all
...]
Completed in 202 milliseconds