OLD | NEW |
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 <algorithm> | 5 #include <algorithm> |
6 #include <ostream> | 6 #include <ostream> |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 #include "ipc/ipc_message_null_macros.h" | 509 #include "ipc/ipc_message_null_macros.h" |
510 | 510 |
511 // STRUCT declarations cause corresponding STRUCT_TRAITS declarations to occur. | 511 // STRUCT declarations cause corresponding STRUCT_TRAITS declarations to occur. |
512 #undef IPC_STRUCT_BEGIN | 512 #undef IPC_STRUCT_BEGIN |
513 #undef IPC_STRUCT_BEGIN_WITH_PARENT | 513 #undef IPC_STRUCT_BEGIN_WITH_PARENT |
514 #undef IPC_STRUCT_MEMBER | 514 #undef IPC_STRUCT_MEMBER |
515 #undef IPC_STRUCT_END | 515 #undef IPC_STRUCT_END |
516 #define IPC_STRUCT_BEGIN_WITH_PARENT(struct_name, parent)\ | 516 #define IPC_STRUCT_BEGIN_WITH_PARENT(struct_name, parent)\ |
517 IPC_STRUCT_BEGIN(struct_name) | 517 IPC_STRUCT_BEGIN(struct_name) |
518 #define IPC_STRUCT_BEGIN(struct_name) IPC_STRUCT_TRAITS_BEGIN(struct_name) | 518 #define IPC_STRUCT_BEGIN(struct_name) IPC_STRUCT_TRAITS_BEGIN(struct_name) |
519 #define IPC_STRUCT_MEMBER(type, name) IPC_STRUCT_TRAITS_MEMBER(name) | 519 #define IPC_STRUCT_MEMBER(type, name, ...) IPC_STRUCT_TRAITS_MEMBER(name) |
520 #define IPC_STRUCT_END() IPC_STRUCT_TRAITS_END() | 520 #define IPC_STRUCT_END() IPC_STRUCT_TRAITS_END() |
521 | 521 |
522 // Set up so next include will generate fuzz trait classes. | 522 // Set up so next include will generate fuzz trait classes. |
523 #undef IPC_STRUCT_TRAITS_BEGIN | 523 #undef IPC_STRUCT_TRAITS_BEGIN |
524 #undef IPC_STRUCT_TRAITS_MEMBER | 524 #undef IPC_STRUCT_TRAITS_MEMBER |
525 #undef IPC_STRUCT_TRAITS_PARENT | 525 #undef IPC_STRUCT_TRAITS_PARENT |
526 #undef IPC_STRUCT_TRAITS_END | 526 #undef IPC_STRUCT_TRAITS_END |
527 #define IPC_STRUCT_TRAITS_BEGIN(struct_name) \ | 527 #define IPC_STRUCT_TRAITS_BEGIN(struct_name) \ |
528 template <> \ | 528 template <> \ |
529 struct FuzzTraits<struct_name> { \ | 529 struct FuzzTraits<struct_name> { \ |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 | 680 |
681 // Entry point avoiding mangled names. | 681 // Entry point avoiding mangled names. |
682 extern "C" { | 682 extern "C" { |
683 __attribute__((visibility("default"))) | 683 __attribute__((visibility("default"))) |
684 IPC::ChannelProxy::OutgoingMessageFilter* GetFilter(void); | 684 IPC::ChannelProxy::OutgoingMessageFilter* GetFilter(void); |
685 } | 685 } |
686 | 686 |
687 IPC::ChannelProxy::OutgoingMessageFilter* GetFilter(void) { | 687 IPC::ChannelProxy::OutgoingMessageFilter* GetFilter(void) { |
688 return &g_ipcfuzz; | 688 return &g_ipcfuzz; |
689 } | 689 } |
OLD | NEW |