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

Side by Side Diff: chrome/browser/sync/syncable/syncable_unittest.cc

Issue 7981006: [Sync] use base::Time in sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux compile errors Created 9 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 | Annotate | Revision Log
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 "chrome/browser/sync/syncable/syncable.h" 5 #include "chrome/browser/sync/syncable/syncable.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <sys/types.h> 9 #include <sys/types.h>
10 10
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 } 1143 }
1144 int i = BEGIN_FIELDS; 1144 int i = BEGIN_FIELDS;
1145 for ( ; i < INT64_FIELDS_END ; ++i) { 1145 for ( ; i < INT64_FIELDS_END ; ++i) {
1146 EXPECT_EQ(create_pre_save.ref((Int64Field)i), 1146 EXPECT_EQ(create_pre_save.ref((Int64Field)i),
1147 create_post_save.ref((Int64Field)i)) 1147 create_post_save.ref((Int64Field)i))
1148 << "int64 field #" << i << " changed during save/load"; 1148 << "int64 field #" << i << " changed during save/load";
1149 EXPECT_EQ(update_pre_save.ref((Int64Field)i), 1149 EXPECT_EQ(update_pre_save.ref((Int64Field)i),
1150 update_post_save.ref((Int64Field)i)) 1150 update_post_save.ref((Int64Field)i))
1151 << "int64 field #" << i << " changed during save/load"; 1151 << "int64 field #" << i << " changed during save/load";
1152 } 1152 }
1153 for ( ; i < TIME_FIELDS_END ; ++i) {
1154 EXPECT_EQ(create_pre_save.ref((TimeField)i),
1155 create_post_save.ref((TimeField)i))
1156 << "time field #" << i << " changed during save/load";
1157 EXPECT_EQ(update_pre_save.ref((TimeField)i),
1158 update_post_save.ref((TimeField)i))
1159 << "time field #" << i << " changed during save/load";
1160 }
1153 for ( ; i < ID_FIELDS_END ; ++i) { 1161 for ( ; i < ID_FIELDS_END ; ++i) {
1154 EXPECT_EQ(create_pre_save.ref((IdField)i), 1162 EXPECT_EQ(create_pre_save.ref((IdField)i),
1155 create_post_save.ref((IdField)i)) 1163 create_post_save.ref((IdField)i))
1156 << "id field #" << i << " changed during save/load"; 1164 << "id field #" << i << " changed during save/load";
1157 EXPECT_EQ(update_pre_save.ref((IdField)i), 1165 EXPECT_EQ(update_pre_save.ref((IdField)i),
1158 update_pre_save.ref((IdField)i)) 1166 update_pre_save.ref((IdField)i))
1159 << "id field #" << i << " changed during save/load"; 1167 << "id field #" << i << " changed during save/load";
1160 } 1168 }
1161 for ( ; i < BIT_FIELDS_END ; ++i) { 1169 for ( ; i < BIT_FIELDS_END ; ++i) {
1162 EXPECT_EQ(create_pre_save.ref((BitField)i), 1170 EXPECT_EQ(create_pre_save.ref((BitField)i),
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { 1815 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) {
1808 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1816 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true));
1809 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); 1817 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true));
1810 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); 1818 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false));
1811 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); 1819 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false));
1812 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); 1820 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true));
1813 } 1821 }
1814 1822
1815 } // namespace 1823 } // namespace
1816 } // namespace syncable 1824 } // namespace syncable
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable_enum_conversions_unittest.cc ('k') | chrome/browser/sync/util/sqlite_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698