blob: 6690af4843876e8ea450e5535d22fa8994eb0c7f [file] [log] [blame]
Prathmesh Prabhuba99b592013-04-17 15:13:14 -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_IP_ADDRESS_STORE_H_
6#define SHILL_MOCK_IP_ADDRESS_STORE_H_
7
8#include <base/basictypes.h>
9#include <gmock/gmock.h>
10
11#include "shill/ip_address_store.h"
12
13namespace shill {
14
15class MockIPAddressStore : public IPAddressStore {
16 public:
17 MockIPAddressStore();
Ben Chan5ea763b2014-08-13 11:07:54 -070018 ~MockIPAddressStore() override;
Prathmesh Prabhuba99b592013-04-17 15:13:14 -070019
20 MOCK_METHOD1(AddUnique, void(const IPAddress &ip));
21 MOCK_METHOD0(Clear, void());
22 MOCK_CONST_METHOD0(Count, size_t());
23 MOCK_CONST_METHOD0(Empty, bool());
24 MOCK_METHOD0(GetRandomIP, IPAddress());
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(MockIPAddressStore);
28};
29
30} // namespace shill
31
32#endif // SHILL_MOCK_IP_ADDRESS_STORE_H_