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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « components/syncable_prefs/pref_model_associator.cc ('k') | components/webdata_services.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "components/syncable_prefs/pref_service_syncable.h" 5 #include "components/syncable_prefs/pref_service_syncable.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/json_string_value_serializer.h"
11 #include "base/json/json_writer.h" 11 #include "base/json/json_writer.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "components/pref_registry/pref_registry_syncable.h" 16 #include "components/pref_registry/pref_registry_syncable.h"
17 #include "components/prefs/scoped_user_pref_update.h" 17 #include "components/prefs/scoped_user_pref_update.h"
18 #include "components/sync/api/attachments/attachment_id.h"
19 #include "components/sync/api/sync_change.h"
20 #include "components/sync/api/sync_data.h"
21 #include "components/sync/api/sync_error_factory_mock.h"
22 #include "components/sync/api/syncable_service.h"
23 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h"
24 #include "components/sync/protocol/preference_specifics.pb.h"
25 #include "components/sync/protocol/sync.pb.h"
18 #include "components/syncable_prefs/pref_model_associator.h" 26 #include "components/syncable_prefs/pref_model_associator.h"
19 #include "components/syncable_prefs/pref_model_associator_client.h" 27 #include "components/syncable_prefs/pref_model_associator_client.h"
20 #include "components/syncable_prefs/testing_pref_service_syncable.h" 28 #include "components/syncable_prefs/testing_pref_service_syncable.h"
21 #include "sync/api/attachments/attachment_id.h"
22 #include "sync/api/sync_change.h"
23 #include "sync/api/sync_data.h"
24 #include "sync/api/sync_error_factory_mock.h"
25 #include "sync/api/syncable_service.h"
26 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
27 #include "sync/protocol/preference_specifics.pb.h"
28 #include "sync/protocol/sync.pb.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using syncer::SyncChange; 31 using syncer::SyncChange;
32 using syncer::SyncData; 32 using syncer::SyncData;
33 33
34 namespace syncable_prefs { 34 namespace syncable_prefs {
35 35
36 namespace { 36 namespace {
37 37
38 const char kExampleUrl0[] = "http://example.com/0"; 38 const char kExampleUrl0[] = "http://example.com/0";
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 base::Bind(&Increment, &num_callbacks)); 565 base::Bind(&Increment, &num_callbacks));
566 EXPECT_EQ(0, num_callbacks); 566 EXPECT_EQ(0, num_callbacks);
567 567
568 InitWithNoSyncData(); 568 InitWithNoSyncData();
569 EXPECT_EQ(1, num_callbacks); 569 EXPECT_EQ(1, num_callbacks);
570 } 570 }
571 571
572 } // namespace 572 } // namespace
573 573
574 } // namespace syncable_prefs 574 } // namespace syncable_prefs
OLDNEW
« no previous file with comments | « components/syncable_prefs/pref_model_associator.cc ('k') | components/webdata_services.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698