blob: 89ee8e62503e03e5f876c166173c6a24f5481363 [file] [log] [blame]
// Copyright (c) 2012 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_CONNECTIVITY_TRIAL_H_
#define SHILL_MOCK_CONNECTIVITY_TRIAL_H_
#include <string>
#include <base/basictypes.h>
#include <gmock/gmock.h>
#include "shill/connectivity_trial.h"
namespace shill {
class MockConnectivityTrial : public ConnectivityTrial {
public:
explicit MockConnectivityTrial(ConnectionRefPtr connection,
int trial_timeout_seconds);
~MockConnectivityTrial() override;
MOCK_METHOD2(Start, bool(const std::string&, int));
MOCK_METHOD1(Retry, bool(int));
MOCK_METHOD0(Stop, void());
MOCK_METHOD0(IsActive, bool());
private:
DISALLOW_COPY_AND_ASSIGN(MockConnectivityTrial);
};
} // namespace shill
#endif // SHILL_MOCK_CONNECTIVITY_TRIAL_H_