OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_UNITTEST_SERIALIZED_DATA_H_ |
| 6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_UNITTEST_SERIALIZED_DATA_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 namespace sync_pb { |
| 11 class EncryptedData; |
| 12 class AppListSpecifics; |
| 13 class AppNotificationSettings; |
| 14 class LinkedAppIconInfo; |
| 15 class ArcPackageSpecifics; |
| 16 class SessionHeader; |
| 17 class SessionTab; |
| 18 class SessionWindow; |
| 19 class TabNavigation; |
| 20 class NavigationRedirect; |
| 21 class PasswordSpecificsData; |
| 22 class GlobalIdDirective; |
| 23 class TimeRangeDirective; |
| 24 class SessionSpecifics; |
| 25 class PrinterPPDData; |
| 26 class AppNotification; |
| 27 class AppSettingSpecifics; |
| 28 class AppSpecifics; |
| 29 class ArticleSpecifics; |
| 30 class AutofillSpecifics; |
| 31 class AutofillProfileSpecifics; |
| 32 class WalletMetadataSpecifics; |
| 33 class AutofillWalletSpecifics; |
| 34 class BookmarkSpecifics; |
| 35 class DeviceInfoSpecifics; |
| 36 class DictionarySpecifics; |
| 37 class ExperimentsSpecifics; |
| 38 class PriorityPreferenceSpecifics; |
| 39 class ExtensionSettingSpecifics; |
| 40 class ExtensionSpecifics; |
| 41 class FaviconImageSpecifics; |
| 42 class FaviconTrackingSpecifics; |
| 43 class HistoryDeleteDirectiveSpecifics; |
| 44 class ManagedUserSettingSpecifics; |
| 45 class ManagedUserSpecifics; |
| 46 class ManagedUserSharedSettingSpecifics; |
| 47 class ManagedUserWhitelistSpecifics; |
| 48 class NigoriSpecifics; |
| 49 class PasswordSpecifics; |
| 50 class PreferenceSpecifics; |
| 51 class PrinterSpecifics; |
| 52 class ReadingListSpecifics; |
| 53 class SyncedNotificationAppInfoSpecifics; |
| 54 class SyncedNotificationSpecifics; |
| 55 class SearchEngineSpecifics; |
| 56 class ThemeSpecifics; |
| 57 class TypedUrlSpecifics; |
| 58 class WalletMaskedCreditCard; |
| 59 class WalletPostalAddress; |
| 60 class WifiCredentialSpecifics; |
| 61 class EntitySpecifics; |
| 62 class SyncEntity; |
| 63 class ClientToServerMessage; |
| 64 class ClientToServerResponse; |
| 65 class DatatypeAssociationStats; |
| 66 class DebugEventInfo; |
| 67 class DebugInfo; |
| 68 class SyncCycleCompletedEventInfo; |
| 69 class ClientConfigParams; |
| 70 class AttachmentIdProto; |
| 71 class EntityMetadata; |
| 72 } // namespace sync_pb |
| 73 |
| 74 namespace syncer { |
| 75 |
| 76 template <class T> |
| 77 struct SerializedProto; |
| 78 |
| 79 template <> |
| 80 struct SerializedProto<sync_pb::EncryptedData> { |
| 81 static uint8_t data[85]; |
| 82 }; |
| 83 |
| 84 template <> |
| 85 struct SerializedProto<sync_pb::AppListSpecifics> { |
| 86 static uint8_t data[119]; |
| 87 }; |
| 88 |
| 89 template <> |
| 90 struct SerializedProto<sync_pb::AppNotificationSettings> { |
| 91 static uint8_t data[54]; |
| 92 }; |
| 93 |
| 94 template <> |
| 95 struct SerializedProto<sync_pb::LinkedAppIconInfo> { |
| 96 static uint8_t data[38]; |
| 97 }; |
| 98 |
| 99 template <> |
| 100 struct SerializedProto<sync_pb::ArcPackageSpecifics> { |
| 101 static uint8_t data[67]; |
| 102 }; |
| 103 |
| 104 template <> |
| 105 struct SerializedProto<sync_pb::SessionHeader> { |
| 106 static uint8_t data[44]; |
| 107 }; |
| 108 |
| 109 template <> |
| 110 struct SerializedProto<sync_pb::SessionTab> { |
| 111 static uint8_t data[425]; |
| 112 }; |
| 113 |
| 114 template <> |
| 115 struct SerializedProto<sync_pb::SessionWindow> { |
| 116 static uint8_t data[35]; |
| 117 }; |
| 118 |
| 119 template <> |
| 120 struct SerializedProto<sync_pb::TabNavigation> { |
| 121 static uint8_t data[343]; |
| 122 }; |
| 123 |
| 124 template <> |
| 125 struct SerializedProto<sync_pb::NavigationRedirect> { |
| 126 static uint8_t data[27]; |
| 127 }; |
| 128 |
| 129 template <> |
| 130 struct SerializedProto<sync_pb::PasswordSpecificsData> { |
| 131 static uint8_t data[197]; |
| 132 }; |
| 133 |
| 134 template <> |
| 135 struct SerializedProto<sync_pb::GlobalIdDirective> { |
| 136 static uint8_t data[28]; |
| 137 }; |
| 138 |
| 139 template <> |
| 140 struct SerializedProto<sync_pb::TimeRangeDirective> { |
| 141 static uint8_t data[21]; |
| 142 }; |
| 143 |
| 144 template <> |
| 145 struct SerializedProto<sync_pb::SessionSpecifics> { |
| 146 static uint8_t data[449]; |
| 147 }; |
| 148 |
| 149 template <> |
| 150 struct SerializedProto<sync_pb::PrinterPPDData> { |
| 151 static uint8_t data[53]; |
| 152 }; |
| 153 |
| 154 template <> |
| 155 struct SerializedProto<sync_pb::AppNotification> { |
| 156 static uint8_t data[165]; |
| 157 }; |
| 158 |
| 159 template <> |
| 160 struct SerializedProto<sync_pb::AppSettingSpecifics> { |
| 161 static uint8_t data[104]; |
| 162 }; |
| 163 |
| 164 template <> |
| 165 struct SerializedProto<sync_pb::AppSpecifics> { |
| 166 static uint8_t data[350]; |
| 167 }; |
| 168 |
| 169 template <> |
| 170 struct SerializedProto<sync_pb::ArticleSpecifics> { |
| 171 static uint8_t data[180]; |
| 172 }; |
| 173 |
| 174 template <> |
| 175 struct SerializedProto<sync_pb::AutofillSpecifics> { |
| 176 static uint8_t data[606]; |
| 177 }; |
| 178 |
| 179 template <> |
| 180 struct SerializedProto<sync_pb::AutofillProfileSpecifics> { |
| 181 static uint8_t data[476]; |
| 182 }; |
| 183 |
| 184 template <> |
| 185 struct SerializedProto<sync_pb::WalletMetadataSpecifics> { |
| 186 static uint8_t data[54]; |
| 187 }; |
| 188 |
| 189 template <> |
| 190 struct SerializedProto<sync_pb::AutofillWalletSpecifics> { |
| 191 static uint8_t data[454]; |
| 192 }; |
| 193 |
| 194 template <> |
| 195 struct SerializedProto<sync_pb::BookmarkSpecifics> { |
| 196 static uint8_t data[129]; |
| 197 }; |
| 198 |
| 199 template <> |
| 200 struct SerializedProto<sync_pb::DeviceInfoSpecifics> { |
| 201 static uint8_t data[118]; |
| 202 }; |
| 203 |
| 204 template <> |
| 205 struct SerializedProto<sync_pb::DictionarySpecifics> { |
| 206 static uint8_t data[15]; |
| 207 }; |
| 208 |
| 209 template <> |
| 210 struct SerializedProto<sync_pb::ExperimentsSpecifics> { |
| 211 static uint8_t data[34]; |
| 212 }; |
| 213 |
| 214 template <> |
| 215 struct SerializedProto<sync_pb::PriorityPreferenceSpecifics> { |
| 216 static uint8_t data[87]; |
| 217 }; |
| 218 |
| 219 template <> |
| 220 struct SerializedProto<sync_pb::ExtensionSettingSpecifics> { |
| 221 static uint8_t data[77]; |
| 222 }; |
| 223 |
| 224 template <> |
| 225 struct SerializedProto<sync_pb::ExtensionSpecifics> { |
| 226 static uint8_t data[155]; |
| 227 }; |
| 228 |
| 229 template <> |
| 230 struct SerializedProto<sync_pb::FaviconImageSpecifics> { |
| 231 static uint8_t data[237]; |
| 232 }; |
| 233 |
| 234 template <> |
| 235 struct SerializedProto<sync_pb::FaviconTrackingSpecifics> { |
| 236 static uint8_t data[42]; |
| 237 }; |
| 238 |
| 239 template <> |
| 240 struct SerializedProto<sync_pb::HistoryDeleteDirectiveSpecifics> { |
| 241 static uint8_t data[35]; |
| 242 }; |
| 243 |
| 244 template <> |
| 245 struct SerializedProto<sync_pb::ManagedUserSettingSpecifics> { |
| 246 static uint8_t data[42]; |
| 247 }; |
| 248 |
| 249 template <> |
| 250 struct SerializedProto<sync_pb::ManagedUserSpecifics> { |
| 251 static uint8_t data[217]; |
| 252 }; |
| 253 |
| 254 template <> |
| 255 struct SerializedProto<sync_pb::ManagedUserSharedSettingSpecifics> { |
| 256 static uint8_t data[86]; |
| 257 }; |
| 258 |
| 259 template <> |
| 260 struct SerializedProto<sync_pb::ManagedUserWhitelistSpecifics> { |
| 261 static uint8_t data[65]; |
| 262 }; |
| 263 |
| 264 template <> |
| 265 struct SerializedProto<sync_pb::NigoriSpecifics> { |
| 266 static uint8_t data[217]; |
| 267 }; |
| 268 |
| 269 template <> |
| 270 struct SerializedProto<sync_pb::PasswordSpecifics> { |
| 271 static uint8_t data[414]; |
| 272 }; |
| 273 |
| 274 template <> |
| 275 struct SerializedProto<sync_pb::PreferenceSpecifics> { |
| 276 static uint8_t data[58]; |
| 277 }; |
| 278 |
| 279 template <> |
| 280 struct SerializedProto<sync_pb::PrinterSpecifics> { |
| 281 static uint8_t data[226]; |
| 282 }; |
| 283 |
| 284 template <> |
| 285 struct SerializedProto<sync_pb::ReadingListSpecifics> { |
| 286 static uint8_t data[118]; |
| 287 }; |
| 288 |
| 289 template <> |
| 290 struct SerializedProto<sync_pb::SyncedNotificationAppInfoSpecifics> { |
| 291 static uint8_t data[0]; |
| 292 }; |
| 293 |
| 294 template <> |
| 295 struct SerializedProto<sync_pb::SyncedNotificationSpecifics> { |
| 296 static uint8_t data[0]; |
| 297 }; |
| 298 |
| 299 template <> |
| 300 struct SerializedProto<sync_pb::SearchEngineSpecifics> { |
| 301 static uint8_t data[511]; |
| 302 }; |
| 303 |
| 304 template <> |
| 305 struct SerializedProto<sync_pb::ThemeSpecifics> { |
| 306 static uint8_t data[66]; |
| 307 }; |
| 308 |
| 309 template <> |
| 310 struct SerializedProto<sync_pb::TypedUrlSpecifics> { |
| 311 static uint8_t data[92]; |
| 312 }; |
| 313 |
| 314 template <> |
| 315 struct SerializedProto<sync_pb::WalletMaskedCreditCard> { |
| 316 static uint8_t data[157]; |
| 317 }; |
| 318 |
| 319 template <> |
| 320 struct SerializedProto<sync_pb::WalletPostalAddress> { |
| 321 static uint8_t data[388]; |
| 322 }; |
| 323 |
| 324 template <> |
| 325 struct SerializedProto<sync_pb::WifiCredentialSpecifics> { |
| 326 static uint8_t data[58]; |
| 327 }; |
| 328 |
| 329 template <> |
| 330 struct SerializedProto<sync_pb::EntitySpecifics> { |
| 331 static uint8_t data[6727]; |
| 332 }; |
| 333 |
| 334 template <> |
| 335 struct SerializedProto<sync_pb::SyncEntity> { |
| 336 static uint8_t data[6494]; |
| 337 }; |
| 338 |
| 339 template <> |
| 340 struct SerializedProto<sync_pb::ClientToServerMessage> { |
| 341 static uint8_t data[13681]; |
| 342 }; |
| 343 |
| 344 template <> |
| 345 struct SerializedProto<sync_pb::ClientToServerResponse> { |
| 346 static uint8_t data[8082]; |
| 347 }; |
| 348 |
| 349 template <> |
| 350 struct SerializedProto<sync_pb::DatatypeAssociationStats> { |
| 351 static uint8_t data[147]; |
| 352 }; |
| 353 |
| 354 template <> |
| 355 struct SerializedProto<sync_pb::DebugEventInfo> { |
| 356 static uint8_t data[252]; |
| 357 }; |
| 358 |
| 359 template <> |
| 360 struct SerializedProto<sync_pb::DebugInfo> { |
| 361 static uint8_t data[290]; |
| 362 }; |
| 363 |
| 364 template <> |
| 365 struct SerializedProto<sync_pb::SyncCycleCompletedEventInfo> { |
| 366 static uint8_t data[71]; |
| 367 }; |
| 368 |
| 369 template <> |
| 370 struct SerializedProto<sync_pb::ClientConfigParams> { |
| 371 static uint8_t data[9]; |
| 372 }; |
| 373 |
| 374 template <> |
| 375 struct SerializedProto<sync_pb::AttachmentIdProto> { |
| 376 static uint8_t data[16]; |
| 377 }; |
| 378 |
| 379 template <> |
| 380 struct SerializedProto<sync_pb::EntityMetadata> { |
| 381 static uint8_t data[144]; |
| 382 }; |
| 383 |
| 384 } // namespace syncer |
| 385 |
| 386 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_UNITTEST_SERIALIZED_DATA_H_ |
OLD | NEW |