Darin Petkov | 7f06033 | 2012-03-14 11:46:47 +0100 | [diff] [blame] | 1 | // 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 | |
| 9 | using testing::Test; |
| 10 | |
| 11 | namespace shill { |
| 12 | |
| 13 | class KeyValueStoreTest : public Test { |
| 14 | public: |
| 15 | KeyValueStoreTest() {} |
| 16 | |
| 17 | protected: |
| 18 | KeyValueStore store_; |
| 19 | }; |
| 20 | |
| 21 | TEST_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 |