OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/test/data/resource.h" | |
6 #include "base/scoped_ptr.h" | 5 #include "base/scoped_ptr.h" |
7 #include "base/values.h" | 6 #include "base/values.h" |
8 #include "chrome/browser/dummy_pref_store.h" | 7 #include "chrome/browser/dummy_pref_store.h" |
9 #include "chrome/browser/pref_value_store.h" | 8 #include "chrome/browser/pref_value_store.h" |
10 | 9 |
11 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 | 12 |
14 using testing::_; | 13 using testing::_; |
15 using testing::Mock; | 14 using testing::Mock; |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore( | 420 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore( |
422 prefs::kRecommendedPref)); | 421 prefs::kRecommendedPref)); |
423 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore( | 422 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore( |
424 prefs::kRecommendedPref)); | 423 prefs::kRecommendedPref)); |
425 | 424 |
426 // Test a preference for which the PrefValueStore does not contain a value. | 425 // Test a preference for which the PrefValueStore does not contain a value. |
427 ASSERT_FALSE(pref_value_store_->HasPrefPath(prefs::kMissingPref)); | 426 ASSERT_FALSE(pref_value_store_->HasPrefPath(prefs::kMissingPref)); |
428 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore(prefs::kMissingPref)); | 427 EXPECT_FALSE(pref_value_store_->PrefValueInUserStore(prefs::kMissingPref)); |
429 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore(prefs::kMissingPref)); | 428 EXPECT_FALSE(pref_value_store_->PrefValueFromUserStore(prefs::kMissingPref)); |
430 } | 429 } |
OLD | NEW |