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

Side by Side Diff: components/sync/model/sync_change_unittest.cc

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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/sync/model/sync_change_processor.h ('k') | components/sync/model/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 "components/sync/model/sync_change.h" 5 #include "components/sync/model/sync_change.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "components/sync/model/attachments/attachment_id.h" 12 #include "components/sync/model/attachments/attachment_id.h"
13 #include "components/sync/model/attachments/attachment_service_proxy_for_test.h" 13 #include "components/sync/model/attachments/attachment_service_proxy_for_test.h"
14 #include "components/sync/protocol/preference_specifics.pb.h" 14 #include "components/sync/protocol/preference_specifics.pb.h"
15 #include "components/sync/protocol/proto_value_conversions.h" 15 #include "components/sync/protocol/proto_value_conversions.h"
16 #include "components/sync/protocol/sync.pb.h" 16 #include "components/sync/protocol/sync.pb.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 // Ordered list of SyncChange's. 21 // Ordered list of SyncChange's.
22 typedef std::vector<SyncChange> SyncChangeList; 22 using SyncChangeList = std::vector<SyncChange>;
23 23
24 namespace { 24 namespace {
25 25
26 class SyncChangeTest : public testing::Test { 26 class SyncChangeTest : public testing::Test {
27 private: 27 private:
28 base::MessageLoop message_loop; 28 base::MessageLoop message_loop;
29 }; 29 };
30 30
31 TEST_F(SyncChangeTest, LocalDelete) { 31 TEST_F(SyncChangeTest, LocalDelete) {
32 SyncChange::SyncChangeType change_type = SyncChange::ACTION_DELETE; 32 SyncChange::SyncChangeType change_type = SyncChange::ACTION_DELETE;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type()); 137 EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type());
138 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); 138 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType());
139 ref_spec = EntitySpecificsToValue(delete_specifics); 139 ref_spec = EntitySpecificsToValue(delete_specifics);
140 e_spec = EntitySpecificsToValue(e.sync_data().GetSpecifics()); 140 e_spec = EntitySpecificsToValue(e.sync_data().GetSpecifics());
141 EXPECT_TRUE(ref_spec->Equals(e_spec.get())); 141 EXPECT_TRUE(ref_spec->Equals(e_spec.get()));
142 } 142 }
143 143
144 } // namespace 144 } // namespace
145 145
146 } // namespace syncer 146 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/model/sync_change_processor.h ('k') | components/sync/model/sync_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698