Home
last modified time | relevance | path

Searched refs:IcmpSession (Results 1 – 10 of 10) sorted by relevance

/system/connectivity/shill/
Dicmp_session.cc38 static std::string ObjectID(IcmpSession* i) { return "(icmp_session)"; } in ObjectID()
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) in IcmpSession() function in shill::IcmpSession
56 echo_reply_callback_(Bind(&IcmpSession::OnEchoReplyReceived, in IcmpSession()
63 IcmpSession::~IcmpSession() { in ~IcmpSession()
67 bool IcmpSession::Start(const IPAddress& destination, in Start()
82 Bind(&IcmpSession::OnEchoReplyError, weak_ptr_factory_.GetWeakPtr()))); in Start()
[all …]
Dicmp_session_unittest.cc84 IcmpSession::kNextUniqueEchoId = 0; in TearDown()
87 MOCK_METHOD1(ResultCallback, void(const IcmpSession::IcmpSessionResult&));
145 IcmpSession::IcmpSessionResult GenerateIcmpResult() { in GenerateIcmpResult()
149 std::map<uint16_t, IcmpSession::SentRecvTimePair>* GetSeqNumToSentRecvTime() { in GetSeqNumToSentRecvTime()
156 return IcmpSession::kNextUniqueEchoId; in GetNextUniqueEchoId()
159 return IcmpSession::kTotalNumEchoRequests; in GetTotalNumEchoRequests()
167 size_t GetTimeoutSeconds() const { return IcmpSession::kTimeoutSeconds; } in GetTimeoutSeconds()
169 return IcmpSession::kEchoRequestIntervalSeconds; in GetEchoRequestIntervalSeconds()
174 IcmpSession icmp_session_;
189 IcmpSession session(&dispatcher_); in TEST_F()
[all …]
Dicmp_session.h55 class IcmpSession {
65 explicit IcmpSession(EventDispatcher* dispatcher);
69 virtual ~IcmpSession();
131 base::WeakPtrFactory<IcmpSession> weak_ptr_factory_;
146 DISALLOW_COPY_AND_ASSIGN(IcmpSession);
Dicmp_session_factory.cc33 IcmpSession* IcmpSessionFactory::CreateIcmpSession( in CreateIcmpSession()
35 return new IcmpSession(dispatcher); in CreateIcmpSession()
Dmock_icmp_session.h28 class MockIcmpSession : public IcmpSession {
36 const IcmpSession::IcmpSessionResultCallback& result_callback));
Dconnection_diagnostics.h42 class IcmpSession; variable
350 std::unique_ptr<IcmpSession> icmp_session_;
358 std::map<int, std::unique_ptr<IcmpSession>>
Dmock_icmp_session.cc22 : IcmpSession(dispatcher) {} in MockIcmpSession()
Dicmp_session_factory.h33 virtual IcmpSession* CreateIcmpSession(EventDispatcher* dispatcher);
Dmock_icmp_session_factory.h34 MOCK_METHOD1(CreateIcmpSession, IcmpSession*(EventDispatcher* dispatcher));
Dconnection_diagnostics.cc168 icmp_session_(new IcmpSession(dispatcher_)), in ConnectionDiagnostics()
400 i, std::unique_ptr<IcmpSession>( in PingDNSServers()
616 if (IcmpSession::AnyRepliesReceived(result)) { in OnPingDNSServerComplete()
707 IcmpSession::AnyRepliesReceived(result) ? kResultSuccess : kResultFailure; in OnPingHostComplete()
708 if (IcmpSession::IsPacketLossPercentageGreaterThan(result, 50)) { in OnPingHostComplete()