blob: c9349dbbc38200da4cf2a555341571f25e554c9a [file] [log] [blame]
Paul Stewartc681fa02012-03-02 19:40:04 -08001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_MOCK_PORTAL_DETECTOR_H_
6#define SHILL_MOCK_PORTAL_DETECTOR_H_
7
Alex Vakulenko8a532292014-06-16 17:18:44 -07008#include <string>
9
Paul Stewartc681fa02012-03-02 19:40:04 -080010#include <base/basictypes.h>
11#include <gmock/gmock.h>
12
13#include "shill/portal_detector.h"
14
15namespace shill {
16
17class MockPortalDetector : public PortalDetector {
18 public:
Alex Vakulenko8a532292014-06-16 17:18:44 -070019 explicit MockPortalDetector(ConnectionRefPtr connection);
Ben Chan5ea763b2014-08-13 11:07:54 -070020 ~MockPortalDetector() override;
Paul Stewartc681fa02012-03-02 19:40:04 -080021
22 MOCK_METHOD1(Start, bool(const std::string &));
23 MOCK_METHOD2(StartAfterDelay, bool(const std::string &, int delay_seconds));
24 MOCK_METHOD0(Stop, void());
25 MOCK_METHOD0(IsInProgress, bool());
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockPortalDetector);
29};
30
31} // namespace shill
32
33#endif // SHILL_MOCK_PORTAL_DETECTOR_H_