OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iostream> | 8 #include <iostream> |
9 #include <ostream> | 9 #include <ostream> |
10 #include <set> | 10 #include <set> |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 return false; | 1002 return false; |
1003 if (!GenerateParam(¶ms->distances, generator)) | 1003 if (!GenerateParam(¶ms->distances, generator)) |
1004 return false; | 1004 return false; |
1005 if (!GenerateParam(¶ms->prevent_fling, generator)) | 1005 if (!GenerateParam(¶ms->prevent_fling, generator)) |
1006 return false; | 1006 return false; |
1007 if (!GenerateParam(¶ms->speed_in_pixels_s, generator)) | 1007 if (!GenerateParam(¶ms->speed_in_pixels_s, generator)) |
1008 return false; | 1008 return false; |
1009 gesture_params.reset(params); | 1009 gesture_params.reset(params); |
1010 break; | 1010 break; |
1011 } | 1011 } |
1012 case content::SyntheticGestureParams::GestureType:: | 1012 case content::SyntheticGestureParams::GestureType::SMOOTH_DRAG_GESTURE: { |
1013 SMOOTH_MOUSE_DRAG_GESTURE: { | 1013 content::SyntheticSmoothDragGestureParams* params = |
1014 content::SyntheticSmoothMouseDragGestureParams* params = | 1014 new content::SyntheticSmoothDragGestureParams(); |
1015 new content::SyntheticSmoothMouseDragGestureParams(); | |
1016 if (!GenerateParam(¶ms->start_point, generator)) | 1015 if (!GenerateParam(¶ms->start_point, generator)) |
1017 return false; | 1016 return false; |
1018 if (!GenerateParam(¶ms->distances, generator)) | 1017 if (!GenerateParam(¶ms->distances, generator)) |
1019 return false; | 1018 return false; |
1020 if (!GenerateParam(¶ms->speed_in_pixels_s, generator)) | 1019 if (!GenerateParam(¶ms->speed_in_pixels_s, generator)) |
1021 return false; | 1020 return false; |
1022 gesture_params.reset(params); | 1021 gesture_params.reset(params); |
1023 break; | 1022 break; |
1024 } | 1023 } |
1025 case content::SyntheticGestureParams::GestureType::PINCH_GESTURE: { | 1024 case content::SyntheticGestureParams::GestureType::PINCH_GESTURE: { |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2103 return EXIT_FAILURE; | 2102 return EXIT_FAILURE; |
2104 | 2103 |
2105 return EXIT_SUCCESS; | 2104 return EXIT_SUCCESS; |
2106 } | 2105 } |
2107 | 2106 |
2108 } // namespace ipc_fuzzer | 2107 } // namespace ipc_fuzzer |
2109 | 2108 |
2110 int main(int argc, char** argv) { | 2109 int main(int argc, char** argv) { |
2111 return ipc_fuzzer::GenerateMain(argc, argv); | 2110 return ipc_fuzzer::GenerateMain(argc, argv); |
2112 } | 2111 } |
OLD | NEW |