blob: 497198480d6d99500c0e7f05eb3d3a2837870e5a [file] [log] [blame]
Chris Masone3bd3c8c2011-06-13 08:20:26 -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_PROPERTY_STORE_
6#define SHILL_MOCK_PROPERTY_STORE_
7
8#include "shill/property_store_interface.h"
9
10#include <map>
11#include <string>
12#include <vector>
13
14#include <base/basictypes.h>
15
16namespace shill {
17
18class Error;
19
20class MockPropertyStore : public PropertyStoreInterface {
21 public:
22 MockPropertyStore() {}
23 virtual ~MockPropertyStore() {}
24 MOCK_METHOD1(Contains, bool(const std::string&));
25 MOCK_METHOD3(SetBoolProperty, bool(const std::string&, bool, Error*));
26 MOCK_METHOD3(SetInt16Property, bool(const std::string&, int16, Error*));
27 MOCK_METHOD3(SetInt32Property, bool(const std::string&, int32, Error*));
28 MOCK_METHOD3(SetStringProperty, bool(const std::string&,
29 const std::string&,
30 Error*));
31 MOCK_METHOD3(SetStringmapProperty,
32 bool(const std::string&,
33 const std::map<std::string, std::string>&,
34 Error*));
35 MOCK_METHOD3(SetStringsProperty, bool(const std::string&,
36 const std::vector<std::string>&,
37 Error*));
38 MOCK_METHOD3(SetUint8Property, bool(const std::string&, uint8, Error*));
39 MOCK_METHOD3(SetUint16Property, bool(const std::string&, uint16, Error*));
40 MOCK_METHOD3(SetUint32Property, bool(const std::string&, uint32, Error*));
41
42 private:
43 DISALLOW_COPY_AND_ASSIGN(MockPropertyStore);
44};
45
46} // namespace shill
47
48#endif // SHILL_MOCK_PROPERTY_STORE_