Index: components/sync/protocol/proto_unittest_serialized_data.h |
diff --git a/components/sync/protocol/proto_unittest_serialized_data.h b/components/sync/protocol/proto_unittest_serialized_data.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5bc4c19b0adcfa762d004953497c21b65376c276 |
--- /dev/null |
+++ b/components/sync/protocol/proto_unittest_serialized_data.h |
@@ -0,0 +1,386 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_UNITTEST_SERIALIZED_DATA_H_ |
+#define COMPONENTS_SYNC_PROTOCOL_PROTO_UNITTEST_SERIALIZED_DATA_H_ |
+ |
+#include <stdint.h> |
+ |
+namespace sync_pb { |
+class EncryptedData; |
+class AppListSpecifics; |
+class AppNotificationSettings; |
+class LinkedAppIconInfo; |
+class ArcPackageSpecifics; |
+class SessionHeader; |
+class SessionTab; |
+class SessionWindow; |
+class TabNavigation; |
+class NavigationRedirect; |
+class PasswordSpecificsData; |
+class GlobalIdDirective; |
+class TimeRangeDirective; |
+class SessionSpecifics; |
+class PrinterPPDData; |
+class AppNotification; |
+class AppSettingSpecifics; |
+class AppSpecifics; |
+class ArticleSpecifics; |
+class AutofillSpecifics; |
+class AutofillProfileSpecifics; |
+class WalletMetadataSpecifics; |
+class AutofillWalletSpecifics; |
+class BookmarkSpecifics; |
+class DeviceInfoSpecifics; |
+class DictionarySpecifics; |
+class ExperimentsSpecifics; |
+class PriorityPreferenceSpecifics; |
+class ExtensionSettingSpecifics; |
+class ExtensionSpecifics; |
+class FaviconImageSpecifics; |
+class FaviconTrackingSpecifics; |
+class HistoryDeleteDirectiveSpecifics; |
+class ManagedUserSettingSpecifics; |
+class ManagedUserSpecifics; |
+class ManagedUserSharedSettingSpecifics; |
+class ManagedUserWhitelistSpecifics; |
+class NigoriSpecifics; |
+class PasswordSpecifics; |
+class PreferenceSpecifics; |
+class PrinterSpecifics; |
+class ReadingListSpecifics; |
+class SyncedNotificationAppInfoSpecifics; |
+class SyncedNotificationSpecifics; |
+class SearchEngineSpecifics; |
+class ThemeSpecifics; |
+class TypedUrlSpecifics; |
+class WalletMaskedCreditCard; |
+class WalletPostalAddress; |
+class WifiCredentialSpecifics; |
+class EntitySpecifics; |
+class SyncEntity; |
+class ClientToServerMessage; |
+class ClientToServerResponse; |
+class DatatypeAssociationStats; |
+class DebugEventInfo; |
+class DebugInfo; |
+class SyncCycleCompletedEventInfo; |
+class ClientConfigParams; |
+class AttachmentIdProto; |
+class EntityMetadata; |
+} // namespace sync_pb |
+ |
+namespace syncer { |
+ |
+template <class T> |
+struct SerializedProto; |
+ |
+template <> |
+struct SerializedProto<sync_pb::EncryptedData> { |
+ static uint8_t data[85]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AppListSpecifics> { |
+ static uint8_t data[119]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AppNotificationSettings> { |
+ static uint8_t data[54]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::LinkedAppIconInfo> { |
+ static uint8_t data[38]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ArcPackageSpecifics> { |
+ static uint8_t data[67]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SessionHeader> { |
+ static uint8_t data[44]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SessionTab> { |
+ static uint8_t data[425]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SessionWindow> { |
+ static uint8_t data[35]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::TabNavigation> { |
+ static uint8_t data[343]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::NavigationRedirect> { |
+ static uint8_t data[27]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::PasswordSpecificsData> { |
+ static uint8_t data[197]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::GlobalIdDirective> { |
+ static uint8_t data[28]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::TimeRangeDirective> { |
+ static uint8_t data[21]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SessionSpecifics> { |
+ static uint8_t data[449]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::PrinterPPDData> { |
+ static uint8_t data[53]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AppNotification> { |
+ static uint8_t data[165]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AppSettingSpecifics> { |
+ static uint8_t data[104]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AppSpecifics> { |
+ static uint8_t data[350]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ArticleSpecifics> { |
+ static uint8_t data[180]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AutofillSpecifics> { |
+ static uint8_t data[606]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AutofillProfileSpecifics> { |
+ static uint8_t data[476]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::WalletMetadataSpecifics> { |
+ static uint8_t data[54]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AutofillWalletSpecifics> { |
+ static uint8_t data[454]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::BookmarkSpecifics> { |
+ static uint8_t data[129]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::DeviceInfoSpecifics> { |
+ static uint8_t data[118]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::DictionarySpecifics> { |
+ static uint8_t data[15]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ExperimentsSpecifics> { |
+ static uint8_t data[34]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::PriorityPreferenceSpecifics> { |
+ static uint8_t data[87]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ExtensionSettingSpecifics> { |
+ static uint8_t data[77]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ExtensionSpecifics> { |
+ static uint8_t data[155]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::FaviconImageSpecifics> { |
+ static uint8_t data[237]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::FaviconTrackingSpecifics> { |
+ static uint8_t data[42]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::HistoryDeleteDirectiveSpecifics> { |
+ static uint8_t data[35]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ManagedUserSettingSpecifics> { |
+ static uint8_t data[42]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ManagedUserSpecifics> { |
+ static uint8_t data[217]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ManagedUserSharedSettingSpecifics> { |
+ static uint8_t data[86]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ManagedUserWhitelistSpecifics> { |
+ static uint8_t data[65]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::NigoriSpecifics> { |
+ static uint8_t data[217]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::PasswordSpecifics> { |
+ static uint8_t data[414]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::PreferenceSpecifics> { |
+ static uint8_t data[58]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::PrinterSpecifics> { |
+ static uint8_t data[226]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ReadingListSpecifics> { |
+ static uint8_t data[118]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SyncedNotificationAppInfoSpecifics> { |
+ static uint8_t data[0]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SyncedNotificationSpecifics> { |
+ static uint8_t data[0]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SearchEngineSpecifics> { |
+ static uint8_t data[511]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ThemeSpecifics> { |
+ static uint8_t data[66]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::TypedUrlSpecifics> { |
+ static uint8_t data[92]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::WalletMaskedCreditCard> { |
+ static uint8_t data[157]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::WalletPostalAddress> { |
+ static uint8_t data[388]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::WifiCredentialSpecifics> { |
+ static uint8_t data[58]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::EntitySpecifics> { |
+ static uint8_t data[6727]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SyncEntity> { |
+ static uint8_t data[6494]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ClientToServerMessage> { |
+ static uint8_t data[13681]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ClientToServerResponse> { |
+ static uint8_t data[8082]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::DatatypeAssociationStats> { |
+ static uint8_t data[147]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::DebugEventInfo> { |
+ static uint8_t data[252]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::DebugInfo> { |
+ static uint8_t data[290]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::SyncCycleCompletedEventInfo> { |
+ static uint8_t data[71]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::ClientConfigParams> { |
+ static uint8_t data[9]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::AttachmentIdProto> { |
+ static uint8_t data[16]; |
+}; |
+ |
+template <> |
+struct SerializedProto<sync_pb::EntityMetadata> { |
+ static uint8_t data[144]; |
+}; |
+ |
+} // namespace syncer |
+ |
+#endif // COMPONENTS_SYNC_PROTOCOL_PROTO_UNITTEST_SERIALIZED_DATA_H_ |