blob: 89ee8e62503e03e5f876c166173c6a24f5481363 [file] [log] [blame]
Rebecca Silberstein3d49ea42014-08-21 11:20:50 -07001// 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_CONNECTIVITY_TRIAL_H_
6#define SHILL_MOCK_CONNECTIVITY_TRIAL_H_
7
8#include <string>
9
10#include <base/basictypes.h>
11#include <gmock/gmock.h>
12
13#include "shill/connectivity_trial.h"
14
15namespace shill {
16
17class MockConnectivityTrial : public ConnectivityTrial {
18 public:
19 explicit MockConnectivityTrial(ConnectionRefPtr connection,
20 int trial_timeout_seconds);
21 ~MockConnectivityTrial() override;
22
Paul Stewart1e006c62015-06-16 12:29:06 -070023 MOCK_METHOD2(Start, bool(const std::string&, int));
Rebecca Silberstein3d49ea42014-08-21 11:20:50 -070024 MOCK_METHOD1(Retry, bool(int));
25 MOCK_METHOD0(Stop, void());
26 MOCK_METHOD0(IsActive, bool());
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(MockConnectivityTrial);
30};
31
32} // namespace shill
33
34#endif // SHILL_MOCK_CONNECTIVITY_TRIAL_H_