blob: 702114dd2358697d056fdb93d7624bebbec34d8e [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_PORTAL_DETECTOR_H_
#define SHILL_MOCK_PORTAL_DETECTOR_H_
#include "shill/portal_detector.h"
#include <string>
#include <vector>
#include <base/time/time.h>
#include <gmock/gmock.h>
#include "shill/manager.h"
#include "shill/net/ip_address.h"
namespace shill {
class MockPortalDetector : public PortalDetector {
public:
MockPortalDetector();
MockPortalDetector(const MockPortalDetector&) = delete;
MockPortalDetector& operator=(const MockPortalDetector&) = delete;
~MockPortalDetector() override;
MOCK_METHOD(bool,
Start,
(const ManagerProperties&,
const std::string& ifname,
const IPAddress&,
const std::vector<std::string>&,
base::TimeDelta),
(override));
MOCK_METHOD(void, Stop, (), (override));
MOCK_METHOD(bool, IsInProgress, (), (override));
MOCK_METHOD(base::TimeDelta, GetNextAttemptDelay, (), (override));
};
} // namespace shill
#endif // SHILL_MOCK_PORTAL_DETECTOR_H_