| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <iostream> | 5 #include <iostream> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <tuple> | 8 #include <tuple> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 content::SyntheticPointerActionParams::PointerActionType action_type; | 947 content::SyntheticPointerActionParams::PointerActionType action_type; |
| 948 gfx::PointF position; | 948 gfx::PointF position; |
| 949 int index; | 949 int index; |
| 950 if (!FuzzParam(&action_type, fuzzer)) | 950 if (!FuzzParam(&action_type, fuzzer)) |
| 951 return false; | 951 return false; |
| 952 if (!FuzzParam(&position, fuzzer)) | 952 if (!FuzzParam(&position, fuzzer)) |
| 953 return false; | 953 return false; |
| 954 if (!FuzzParam(&index, fuzzer)) | 954 if (!FuzzParam(&index, fuzzer)) |
| 955 return false; | 955 return false; |
| 956 content::SyntheticPointerActionParams* params = | 956 content::SyntheticPointerActionParams* params = |
| 957 new content::SyntheticPointerActionParams(action_type); | 957 new content::SyntheticPointerActionParams(); |
| 958 params->set_pointer_action_type(action_type); |
| 958 params->set_position(position); | 959 params->set_position(position); |
| 959 params->set_index(index); | 960 params->set_index(index); |
| 960 gesture_params.reset(params); | 961 gesture_params.reset(params); |
| 961 break; | 962 break; |
| 962 } | 963 } |
| 963 } | 964 } |
| 964 p->set_gesture_params(std::move(gesture_params)); | 965 p->set_gesture_params(std::move(gesture_params)); |
| 965 return true; | 966 return true; |
| 966 } | 967 } |
| 967 }; | 968 }; |
| (...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1999 #include "tools/ipc_fuzzer/message_lib/all_message_null_macros.h" | 2000 #include "tools/ipc_fuzzer/message_lib/all_message_null_macros.h" |
| 2000 #undef IPC_MESSAGE_DECL | 2001 #undef IPC_MESSAGE_DECL |
| 2001 #define IPC_MESSAGE_DECL(name, ...) \ | 2002 #define IPC_MESSAGE_DECL(name, ...) \ |
| 2002 (*map)[static_cast<uint32_t>(name::ID)] = FuzzerHelper<name>::Fuzz; | 2003 (*map)[static_cast<uint32_t>(name::ID)] = FuzzerHelper<name>::Fuzz; |
| 2003 | 2004 |
| 2004 void PopulateFuzzerFunctionMap(FuzzerFunctionMap* map) { | 2005 void PopulateFuzzerFunctionMap(FuzzerFunctionMap* map) { |
| 2005 #include "tools/ipc_fuzzer/message_lib/all_messages.h" | 2006 #include "tools/ipc_fuzzer/message_lib/all_messages.h" |
| 2006 } | 2007 } |
| 2007 | 2008 |
| 2008 } // namespace ipc_fuzzer | 2009 } // namespace ipc_fuzzer |
| OLD | NEW |