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

source code of flutter_engine/flutter/testing/test_args.cc