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

Side by Side Diff: chrome/tools/ipclist/ipcfuzz.cc

Issue 10067023: Add support for default values of IPC_STRUCT_MEMBER. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tsepez feedback Created 8 years, 8 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
« no previous file with comments | « no previous file | ipc/ipc_message_macros.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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | ipc/ipc_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698