blob: 9a15eb9dc9484543028fa922f3136fd5998fadb1 [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
8#include <base/basictypes.h>
9#include <gmock/gmock.h>
10
11#include "shill/portal_detector.h"
12
13namespace shill {
14
15class MockPortalDetector : public PortalDetector {
16 public:
17 MockPortalDetector(ConnectionRefPtr connection);
18 virtual ~MockPortalDetector();
19
20 MOCK_METHOD1(Start, bool(const std::string &));
21 MOCK_METHOD2(StartAfterDelay, bool(const std::string &, int delay_seconds));
22 MOCK_METHOD0(Stop, void());
23 MOCK_METHOD0(IsInProgress, bool());
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(MockPortalDetector);
27};
28
29} // namespace shill
30
31#endif // SHILL_MOCK_PORTAL_DETECTOR_H_