| 1 | // Copyright 2013 The Flutter 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 | #include "flutter/testing/test_args.h" |
| 6 | |
| 7 | namespace flutter { |
| 8 | namespace testing { |
| 9 | |
| 10 | static fml::CommandLine gProcessArgs; |
| 11 | |
| 12 | const fml::CommandLine& GetArgsForProcess() { |
| 13 | return gProcessArgs; |
| 14 | } |
| 15 | |
| 16 | void SetArgsForProcess(int argc, char** argv) { |
| 17 | gProcessArgs = fml::CommandLineFromArgcArgv(argc, argv); |
| 18 | } |
| 19 | |
| 20 | } // namespace testing |
| 21 | } // namespace flutter |
| 22 | |