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

Side by Side Diff: tools/ipc_fuzzer/mutate/generate.cc

Issue 969103002: Handle rename of SyntheticSmoothMouseDragGestureParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
1002 return false; 1002 return false;
1003 if (!GenerateParam(&params->distances, generator)) 1003 if (!GenerateParam(&params->distances, generator))
1004 return false; 1004 return false;
1005 if (!GenerateParam(&params->prevent_fling, generator)) 1005 if (!GenerateParam(&params->prevent_fling, generator))
1006 return false; 1006 return false;
1007 if (!GenerateParam(&params->speed_in_pixels_s, generator)) 1007 if (!GenerateParam(&params->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(&params->start_point, generator)) 1015 if (!GenerateParam(&params->start_point, generator))
1017 return false; 1016 return false;
1018 if (!GenerateParam(&params->distances, generator)) 1017 if (!GenerateParam(&params->distances, generator))
1019 return false; 1018 return false;
1020 if (!GenerateParam(&params->speed_in_pixels_s, generator)) 1019 if (!GenerateParam(&params->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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698