Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: components/syncable_prefs/pref_model_associator_unittest.cc

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/syncable_prefs/pref_model_associator_client.h ('k') | components/syncable_prefs/pref_service_mock_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698