blob: f1f16b42d2f2a86c1a61d378315d8ecd70b0987f [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 Masone3bd3c8c2011-06-13 08:20:26 -07008#include <base/basictypes.h>
Darin Petkovef34f182011-08-26 14:14:40 -07009#include <gmock/gmock.h>
10
11#include "shill/property_store.h"
Chris Masone3bd3c8c2011-06-13 08:20:26 -070012
13namespace shill {
14
Chris Masoneb925cc82011-06-22 15:39:57 -070015class MockPropertyStore : public PropertyStore {
Chris Masone3bd3c8c2011-06-13 08:20:26 -070016 public:
Darin Petkovef34f182011-08-26 14:14:40 -070017 MockPropertyStore();
18 virtual ~MockPropertyStore();
19
Chris Masone3bd3c8c2011-06-13 08:20:26 -070020 MOCK_METHOD1(Contains, bool(const std::string&));
21 MOCK_METHOD3(SetBoolProperty, bool(const std::string&, bool, Error*));
22 MOCK_METHOD3(SetInt16Property, bool(const std::string&, int16, Error*));
23 MOCK_METHOD3(SetInt32Property, bool(const std::string&, int32, Error*));
24 MOCK_METHOD3(SetStringProperty, bool(const std::string&,
25 const std::string&,
26 Error*));
Chris Masonea8a2c252011-06-27 22:16:30 -070027 MOCK_METHOD3(SetStringmapProperty, bool(const std::string&,
28 const Stringmap&,
29 Error*));
Chris Masone3bd3c8c2011-06-13 08:20:26 -070030 MOCK_METHOD3(SetStringsProperty, bool(const std::string&,
Chris Masonea8a2c252011-06-27 22:16:30 -070031 const Strings&,
Chris Masone3bd3c8c2011-06-13 08:20:26 -070032 Error*));
33 MOCK_METHOD3(SetUint8Property, bool(const std::string&, uint8, Error*));
34 MOCK_METHOD3(SetUint16Property, bool(const std::string&, uint16, Error*));
35 MOCK_METHOD3(SetUint32Property, bool(const std::string&, uint32, Error*));
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(MockPropertyStore);
39};
40
41} // namespace shill
42
43#endif // SHILL_MOCK_PROPERTY_STORE_