blob: 085cf54a5576bb7a28dc56012efd3d88efb2db04 [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 <string>
#include <base/macros.h>
#include <gmock/gmock.h>
#include "shill/portal_detector.h"
namespace shill {
class MockPortalDetector : public PortalDetector {
public:
explicit MockPortalDetector(ConnectionRefPtr connection);
~MockPortalDetector() override;
MOCK_METHOD2(StartAfterDelay,
bool(const PortalDetector::Properties&, int delay_seconds));
MOCK_METHOD0(Stop, void());
MOCK_METHOD0(IsInProgress, bool());
MOCK_METHOD1(AdjustStartDelay, int(int delay));
private:
DISALLOW_COPY_AND_ASSIGN(MockPortalDetector);
};
} // namespace shill
#endif // SHILL_MOCK_PORTAL_DETECTOR_H_