blob: 790a9ae60f259193fa26bad06e93c7f2979b008d [file] [log] [blame]
mukesh agrawal92496a42014-04-08 16:04:43 -07001// Copyright (c) 2014 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
Ben Chanc45688b2014-07-02 23:50:45 -07005#ifndef SHILL_STUB_STORAGE_H_
6#define SHILL_STUB_STORAGE_H_
mukesh agrawal92496a42014-04-08 16:04:43 -07007
8#include <set>
9#include <string>
10#include <vector>
11
12#include "shill/store_interface.h"
13
14namespace shill {
15
16// A stub implementation of StoreInterface.
17class StubStorage : public StoreInterface {
18 public:
19 virtual ~StubStorage() {}
20
21 virtual bool Flush() override { return false; }
22 virtual std::set<std::string> GetGroups() const override {
23 return {};
24 }
25 virtual std::set<std::string> GetGroupsWithKey(
26 const std::string &key) const override {
27 return {};
28 }
29 virtual std::set<std::string> GetGroupsWithProperties(
30 const KeyValueStore &properties) const override {
31 return {};
32 }
33 virtual bool ContainsGroup(const std::string &group) const override {
34 return false;
35 }
36 virtual bool DeleteKey(const std::string &group, const std::string &key)
37 override { return false; }
38 virtual bool DeleteGroup(const std::string &group) override { return false; }
39 virtual bool SetHeader(const std::string &header) override { return false; }
40 virtual bool GetString(const std::string &group,
41 const std::string &key,
42 std::string *value) const override {
43 return false;
44 }
45 virtual bool SetString(const std::string &group,
46 const std::string &key,
47 const std::string &value) override {
48 return false;
49 }
50 virtual bool GetBool(const std::string &group,
51 const std::string &key,
52 bool *value) const override {
53 return false;
54 }
55 virtual bool SetBool(const std::string &group,
56 const std::string &key,
57 bool value) override {
58 return false;
59 }
60 virtual bool GetInt(const std::string &group,
61 const std::string &key,
62 int *value) const override {
63 return false;
64 }
65 virtual bool SetInt(const std::string &group,
66 const std::string &key,
67 int value) override {
68 return false;
69 }
70 virtual bool GetUint64(const std::string &group,
71 const std::string &key,
72 uint64 *value) const override {
73 return false;
74 }
75 virtual bool SetUint64(const std::string &group,
76 const std::string &key,
77 uint64 value) override {
78 return false;
79 }
80 virtual bool GetStringList(const std::string &group,
81 const std::string &key,
82 std::vector<std::string> *value) const override {
83 return false;
84 }
85 virtual bool SetStringList(const std::string &group,
86 const std::string &key,
87 const std::vector<std::string> &value) override {
88 return false;
89 }
90 virtual bool GetCryptedString(const std::string &group,
91 const std::string &key,
92 std::string *value) override {
93 return false;
94 }
95 virtual bool SetCryptedString(const std::string &group,
96 const std::string &key,
97 const std::string &value) override {
98 return false;
99 }
100};
101
102} // namespace shill
103
Ben Chanc45688b2014-07-02 23:50:45 -0700104#endif // SHILL_STUB_STORAGE_H_