| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from recipe_engine import post_process |
| |
| DEPS = [ |
| 'gn', |
| ] |
| |
| _INPUT_ARGS = ( |
| '# some comments\n' |
| 'goma_dir = "/b/build/slave/cache/goma_client"\n' |
| 'target_cpu = "x86"\n' |
| 'use_goma = true\n') |
| |
| _EXPECTED_RESULT = { |
| 'goma_dir': '"/b/build/slave/cache/goma_client"', |
| 'target_cpu': '"x86"', |
| 'use_goma': 'true', |
| } |
| |
| def RunSteps(api): |
| actual_result = api.gn.parse_gn_args(_INPUT_ARGS) |
| assert actual_result == _EXPECTED_RESULT |
| |
| def GenTests(api): |
| yield api.test( |
| 'basic', |
| api.post_process(post_process.DropExpectation), |
| ) |