blob: e6ca70d1bd9588d3a36063b88a96efb4ad2237e9 [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
Ben Chancc67c522014-09-03 07:19:18 -07008#include <base/macros.h>
Prathmesh Prabhuba99b592013-04-17 15:13:14 -07009#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
Paul Stewart1e006c62015-06-16 12:29:06 -070020 MOCK_METHOD1(AddUnique, void(const IPAddress& ip));
Prathmesh Prabhuba99b592013-04-17 15:13:14 -070021 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_