| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/prefs/scoped_user_pref_update.h" | 8 #include "base/prefs/scoped_user_pref_update.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/prefs/pref_model_associator.h" | 10 #include "components/syncable_prefs/pref_model_associator.h" |
| 11 #include "chrome/browser/prefs/pref_model_associator_client.h" | 11 #include "components/syncable_prefs/pref_model_associator_client.h" |
| 12 #include "chrome/browser/prefs/pref_service_mock_factory.h" | 12 #include "components/syncable_prefs/pref_service_mock_factory.h" |
| 13 #include "chrome/browser/prefs/pref_service_syncable.h" | 13 #include "components/syncable_prefs/pref_service_syncable.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 const char kStringPrefName[] = "pref.string"; | 18 const char kStringPrefName[] = "pref.string"; |
| 19 const char kListPrefName[] = "pref.list"; | 19 const char kListPrefName[] = "pref.list"; |
| 20 const char kDictionaryPrefName[] = "pref.dictionary"; | 20 const char kDictionaryPrefName[] = "pref.dictionary"; |
| 21 | 21 |
| 22 class TestPrefModelAssociatorClient : public PrefModelAssociatorClient { | 22 class TestPrefModelAssociatorClient : public PrefModelAssociatorClient { |
| 23 public: | 23 public: |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 std::string content_type0_; | 463 std::string content_type0_; |
| 464 base::ListValue server_url_list_; | 464 base::ListValue server_url_list_; |
| 465 base::DictionaryValue server_patterns_; | 465 base::DictionaryValue server_patterns_; |
| 466 }; | 466 }; |
| 467 | 467 |
| 468 TEST_F(IndividualPreferenceMergeTest, ListPreference) { | 468 TEST_F(IndividualPreferenceMergeTest, ListPreference) { |
| 469 EXPECT_TRUE(MergeListPreference(kListPrefName)); | 469 EXPECT_TRUE(MergeListPreference(kListPrefName)); |
| 470 } | 470 } |
| 471 | 471 |
| 472 } // namespace | 472 } // namespace |
| OLD | NEW |