blob: 03964da13023d975f937b7ff010f000f7b617fc0 [file] [log] [blame]
Darin Petkov7f060332012-03-14 11:46:47 +01001// Copyright (c) 2012 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#include "shill/key_value_store.h"
6
7#include <gtest/gtest.h>
8
9using testing::Test;
10
11namespace shill {
12
13class KeyValueStoreTest : public Test {
14 public:
15 KeyValueStoreTest() {}
16
17 protected:
18 KeyValueStore store_;
19};
20
21TEST_F(KeyValueStoreTest, LookupString) {
22 EXPECT_EQ("bar", store_.LookupString("foo", "bar"));
23 store_.SetString("foo", "zoo");
24 EXPECT_EQ("zoo", store_.LookupString("foo", "bar"));
25}
26
27} // namespace shill