| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Module to fuzz parameters of a template.""" |
| 6 |
| 7 import constraints |
| 8 from fuzzer_helpers import FillInParameter |
| 9 |
| 10 |
| 11 def FuzzParameters(test_file_data): |
| 12 """Fuzzes the data in the string provided. |
| 13 |
| 14 For now this function only replaces the TRANSFORM_SERVICE_UUID parameter |
| 15 with a valid UUID string. |
| 16 |
| 17 Args: |
| 18 test_file_data: String that contains parameters to be replaced. |
| 19 |
| 20 Returns: |
| 21 A string containing the value of test_file_data but with all its |
| 22 parameters replaced. |
| 23 """ |
| 24 |
| 25 test_file_data = FillInParameter('TRANSFORM_REQUEST_DEVICE_OPTIONS', |
| 26 constraints.GetRequestDeviceOptions, |
| 27 test_file_data) |
| 28 |
| 29 return test_file_data |
| OLD | NEW |