OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
10 #include "chrome/browser/value_store/caching_value_store.h" | 10 #include "chrome/browser/value_store/caching_value_store.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 { | 105 { |
106 ASSERT_TRUE(storage_->Get("key1", &value)); | 106 ASSERT_TRUE(storage_->Get("key1", &value)); |
107 std::string result; | 107 std::string result; |
108 ASSERT_TRUE(value->GetAsString(&result)); | 108 ASSERT_TRUE(value->GetAsString(&result)); |
109 EXPECT_EQ("new1", result); | 109 EXPECT_EQ("new1", result); |
110 } | 110 } |
111 | 111 |
112 ASSERT_FALSE(storage_->Get("key2", &value)); | 112 ASSERT_FALSE(storage_->Get("key2", &value)); |
113 } | 113 } |
OLD | NEW |