blob: 7f714c1472d896c165af781b57b374673f5e42bb [file] [log] [blame]
Paul Stewartf65320c2011-10-13 14:34:52 -07001// Copyright (c) 2011 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_ASYNC_CONNECTION_H_
6#define SHILL_MOCK_ASYNC_CONNECTION_H_
7
8#include <base/basictypes.h>
9#include <gmock/gmock.h>
10
11#include "shill/async_connection.h"
12
13namespace shill {
14
15class MockAsyncConnection : public AsyncConnection {
16 public:
17 MockAsyncConnection();
18 virtual ~MockAsyncConnection();
19
20 MOCK_METHOD2(Start, bool(const IPAddress &address, int port));
21 MOCK_METHOD0(Stop, void());
22
23 private:
24 DISALLOW_COPY_AND_ASSIGN(MockAsyncConnection);
25};
26
27} // namespace shill
28
29#endif // SHILL_MOCK_ASYNC_CONNECTION_H_