Home
last modified time | relevance | path

Searched refs:PassiveLinkMonitor (Results 1 – 8 of 8) sorted by relevance

/system/connectivity/shill/
Dpassive_link_monitor.cc42 const int PassiveLinkMonitor::kDefaultMonitorCycles = 40;
43 const int PassiveLinkMonitor::kCyclePeriodMilliseconds = 25000;
44 const int PassiveLinkMonitor::kMinArpRequestsPerCycle = 5;
46 PassiveLinkMonitor::PassiveLinkMonitor(const ConnectionRefPtr& connection, in PassiveLinkMonitor() function in shill::PassiveLinkMonitor
61 PassiveLinkMonitor::~PassiveLinkMonitor() { in ~PassiveLinkMonitor()
65 bool PassiveLinkMonitor::Start(int num_cycles) { in Start()
74 Bind(&PassiveLinkMonitor::CycleTimeoutHandler, Unretained(this))); in Start()
81 void PassiveLinkMonitor::Stop() { in Stop()
90 bool PassiveLinkMonitor::StartArpClient() { in StartArpClient()
98 Bind(&PassiveLinkMonitor::ReceiveRequest, Unretained(this)))); in StartArpClient()
[all …]
Dpassive_link_monitor.h38 class PassiveLinkMonitor {
45 PassiveLinkMonitor(const ConnectionRefPtr& connection,
48 virtual ~PassiveLinkMonitor();
101 DISALLOW_COPY_AND_ASSIGN(PassiveLinkMonitor);
Dpassive_link_monitor_unittest.cc70 const PassiveLinkMonitor::ResultCallback result_callback() { in result_callback()
75 PassiveLinkMonitor::ResultCallback result_callback_;
142 PassiveLinkMonitor link_monitor_;
148 EXPECT_FALSE(link_monitor_.Start(PassiveLinkMonitor::kDefaultMonitorCycles)); in TEST_F()
156 EXPECT_TRUE(link_monitor_.Start(PassiveLinkMonitor::kDefaultMonitorCycles)); in TEST_F()
253 const int kCurrentCycle = PassiveLinkMonitor::kDefaultMonitorCycles - 1; in TEST_F()
261 VerifyCurrentCycleStats(0, PassiveLinkMonitor::kDefaultMonitorCycles); in TEST_F()
Dlink_monitor.h37 class PassiveLinkMonitor; variable
110 std::unique_ptr<PassiveLinkMonitor> passive_link_monitor_;
Dmock_passive_link_monitor.cc24 : PassiveLinkMonitor(nullptr, nullptr, ResultCallback()) {} in MockPassiveLinkMonitor()
Dlink_monitor.cc70 new PassiveLinkMonitor( in LinkMonitor()
149 passive_link_monitor_->Start(PassiveLinkMonitor::kDefaultMonitorCycles); in OnActiveLinkMonitorSuccess()
Dmock_passive_link_monitor.h29 class MockPassiveLinkMonitor : public PassiveLinkMonitor {
Dlink_monitor_unittest.cc243 PassiveLinkMonitor::kDefaultMonitorCycles)).Times(1); in TEST_F()
252 PassiveLinkMonitor::kDefaultMonitorCycles)).Times(1); in TEST_F()