| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/prefs/leveldb_pref_store.h" | 5 #include "chrome/browser/prefs/leveldb_pref_store.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 295 |
| 296 EXPECT_TRUE(pref_store_->GetValue("dictionary", &value)); | 296 EXPECT_TRUE(pref_store_->GetValue("dictionary", &value)); |
| 297 EXPECT_TRUE(base::Value::Equals(golden_dict_value.get(), value)); | 297 EXPECT_TRUE(base::Value::Equals(golden_dict_value.get(), value)); |
| 298 | 298 |
| 299 EXPECT_TRUE(pref_store_->GetValue("list", &value)); | 299 EXPECT_TRUE(pref_store_->GetValue("list", &value)); |
| 300 EXPECT_TRUE(base::Value::Equals(golden_list_value.get(), value)); | 300 EXPECT_TRUE(base::Value::Equals(golden_list_value.get(), value)); |
| 301 | 301 |
| 302 EXPECT_TRUE(pref_store_->GetValue("compound_value", &value)); | 302 EXPECT_TRUE(pref_store_->GetValue("compound_value", &value)); |
| 303 EXPECT_TRUE(base::Value::Equals(golden_compound_value.get(), value)); | 303 EXPECT_TRUE(base::Value::Equals(golden_compound_value.get(), value)); |
| 304 } | 304 } |
| OLD | NEW |