blob: aeae135df9e3caca686048e7555b42c0e3e53130 [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
Ben Chancc67c522014-09-03 07:19:18 -070010#include <base/macros.h>
Paul Stewartc681fa02012-03-02 19:40:04 -080011#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
Paul Stewart1e006c62015-06-16 12:29:06 -070022 MOCK_METHOD1(Start, bool(const std::string&));
23 MOCK_METHOD2(StartAfterDelay, bool(const std::string&, int delay_seconds));
Paul Stewartc681fa02012-03-02 19:40:04 -080024 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_