blob: 5e79a901aaa3a6e0ebd30c25651dd07cfb1b37e8 [file] [log] [blame]
Darin Petkovba40dd32011-07-11 20:06:39 -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_STORE_
6#define SHILL_MOCK_STORE_
7
8#include <gmock/gmock.h>
9
10#include "shill/store_interface.h"
11
12namespace shill {
13
14class MockStore : public StoreInterface {
15 public:
16 MOCK_METHOD0(Open, bool());
17 MOCK_METHOD0(Close, bool());
18 MOCK_METHOD0(GetGroups, std::set<std::string>());
19 MOCK_METHOD1(ContainsGroup, bool(const std::string &group));
20 MOCK_METHOD2(DeleteKey,
21 bool(const std::string &group, const std::string &key));
22 MOCK_METHOD1(DeleteGroup, bool(const std::string &group));
23 MOCK_METHOD3(GetString, bool(const std::string &group,
24 const std::string &key,
25 std::string *value));
26 MOCK_METHOD3(SetString, bool(const std::string &group,
27 const std::string &key,
28 const std::string &value));
29 MOCK_METHOD3(GetBool, bool(const std::string &group,
30 const std::string &key,
31 bool *value));
32 MOCK_METHOD3(SetBool, bool(const std::string &group,
33 const std::string &key,
34 bool value));
35 MOCK_METHOD3(GetInt, bool(const std::string &group,
36 const std::string &key,
37 int *value));
38 MOCK_METHOD3(SetInt, bool(const std::string &group,
39 const std::string &key,
40 int value));
41 MOCK_METHOD3(GetStringList, bool(const std::string &group,
42 const std::string &key,
43 std::vector<std::string> *value));
44 MOCK_METHOD3(SetStringList, bool(const std::string &group,
45 const std::string &key,
46 const std::vector<std::string> &value));
47 MOCK_METHOD3(GetCryptedString, bool(const std::string &group,
48 const std::string &key,
49 std::string *value));
50 MOCK_METHOD3(SetCryptedString, bool(const std::string &group,
51 const std::string &key,
52 const std::string &value));
53};
54
55} // namespace shill
56
57#endif // SHILL_MOCK_STORE_