blob: 0956545cdbe8433ad40fbfd96fb34b3c89fd2d03 [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
Chris Masoneb925cc82011-06-22 15:39:57 -07008#include "shill/property_store.h"
Chris Masone3bd3c8c2011-06-13 08:20:26 -07009
10#include <map>
11#include <string>
12#include <vector>
13
14#include <base/basictypes.h>
15
16namespace shill {
17
18class Error;
19
Chris Masoneb925cc82011-06-22 15:39:57 -070020class MockPropertyStore : public PropertyStore {
Chris Masone3bd3c8c2011-06-13 08:20:26 -070021 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*));
Chris Masonea8a2c252011-06-27 22:16:30 -070031 MOCK_METHOD3(SetStringmapProperty, bool(const std::string&,
32 const Stringmap&,
33 Error*));
Chris Masone3bd3c8c2011-06-13 08:20:26 -070034 MOCK_METHOD3(SetStringsProperty, bool(const std::string&,
Chris Masonea8a2c252011-06-27 22:16:30 -070035 const Strings&,
Chris Masone3bd3c8c2011-06-13 08:20:26 -070036 Error*));
37 MOCK_METHOD3(SetUint8Property, bool(const std::string&, uint8, Error*));
38 MOCK_METHOD3(SetUint16Property, bool(const std::string&, uint16, Error*));
39 MOCK_METHOD3(SetUint32Property, bool(const std::string&, uint32, Error*));
40
41 private:
42 DISALLOW_COPY_AND_ASSIGN(MockPropertyStore);
43};
44
45} // namespace shill
46
47#endif // SHILL_MOCK_PROPERTY_STORE_