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

Side by Side Diff: sync/api/sync_change_unittest.cc

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « sync/api/attachments/fake_attachment_store_unittest.cc ('k') | sync/api/sync_data.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/api/sync_change.h" 5 #include "sync/api/sync_change.h"
6 6
7 #include <string> 7 #include <string>
8 8
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/time/time.h" 11 #include "base/time/time.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "sync/api/attachments/attachment_id.h" 13 #include "sync/api/attachments/attachment_id.h"
14 #include "sync/api/attachments/attachment_service_proxy_for_test.h" 14 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
15 #include "sync/protocol/preference_specifics.pb.h" 15 #include "sync/protocol/preference_specifics.pb.h"
16 #include "sync/protocol/proto_value_conversions.h" 16 #include "sync/protocol/proto_value_conversions.h"
17 #include "sync/protocol/sync.pb.h" 17 #include "sync/protocol/sync.pb.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace syncer { 20 namespace syncer {
21 21
22 // Ordered list of SyncChange's. 22 // Ordered list of SyncChange's.
23 typedef std::vector<SyncChange> SyncChangeList; 23 typedef std::vector<SyncChange> SyncChangeList;
24 24
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type()); 151 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type());
152 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); 152 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType());
153 ref_spec.reset(EntitySpecificsToValue(delete_specifics)); 153 ref_spec.reset(EntitySpecificsToValue(delete_specifics));
154 e_spec.reset(EntitySpecificsToValue(e.sync_data().GetSpecifics())); 154 e_spec.reset(EntitySpecificsToValue(e.sync_data().GetSpecifics()));
155 EXPECT_TRUE(ref_spec->Equals(e_spec.get())); 155 EXPECT_TRUE(ref_spec->Equals(e_spec.get()));
156 } 156 }
157 157
158 } // namespace 158 } // namespace
159 159
160 } // namespace syncer 160 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/api/attachments/fake_attachment_store_unittest.cc ('k') | sync/api/sync_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698