Searched refs:IcmpSession (Results 1 – 10 of 10) sorted by relevance
/system/connectivity/shill/ |
D | icmp_session.cc | 38 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 …]
|
D | icmp_session_unittest.cc | 84 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 …]
|
D | icmp_session.h | 55 class IcmpSession { 65 explicit IcmpSession(EventDispatcher* dispatcher); 69 virtual ~IcmpSession(); 131 base::WeakPtrFactory<IcmpSession> weak_ptr_factory_; 146 DISALLOW_COPY_AND_ASSIGN(IcmpSession);
|
D | icmp_session_factory.cc | 33 IcmpSession* IcmpSessionFactory::CreateIcmpSession( in CreateIcmpSession() 35 return new IcmpSession(dispatcher); in CreateIcmpSession()
|
D | mock_icmp_session.h | 28 class MockIcmpSession : public IcmpSession { 36 const IcmpSession::IcmpSessionResultCallback& result_callback));
|
D | connection_diagnostics.h | 42 class IcmpSession; variable 350 std::unique_ptr<IcmpSession> icmp_session_; 358 std::map<int, std::unique_ptr<IcmpSession>>
|
D | mock_icmp_session.cc | 22 : IcmpSession(dispatcher) {} in MockIcmpSession()
|
D | icmp_session_factory.h | 33 virtual IcmpSession* CreateIcmpSession(EventDispatcher* dispatcher);
|
D | mock_icmp_session_factory.h | 34 MOCK_METHOD1(CreateIcmpSession, IcmpSession*(EventDispatcher* dispatcher));
|
D | connection_diagnostics.cc | 168 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()
|