Flutter Engine
Loading...
Searching...
No Matches
test_args.cc
Go to the documentation of this file.
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::testing
{
8
9
static
fml::CommandLine
gProcessArgs
;
10
11
const
fml::CommandLine
&
GetArgsForProcess
() {
12
return
gProcessArgs
;
13
}
14
15
void
SetArgsForProcess
(
int
argc,
char
**
argv
) {
16
gProcessArgs
=
fml::CommandLineFromArgcArgv
(argc,
argv
);
17
}
18
19
}
// namespace flutter::testing
fml::CommandLine
Definition
command_line.h:56
argv
char ** argv
Definition
library.h:9
flutter::testing
Definition
native_assets_unittests.cc:10
flutter::testing::GetArgsForProcess
const fml::CommandLine & GetArgsForProcess()
Definition
test_args.cc:11
flutter::testing::gProcessArgs
static fml::CommandLine gProcessArgs
Definition
test_args.cc:9
flutter::testing::SetArgsForProcess
void SetArgsForProcess(int argc, char **argv)
Definition
test_args.cc:15
fml::CommandLineFromArgcArgv
CommandLine CommandLineFromArgcArgv(int argc, const char *const *argv)
Definition
command_line.h:231
test_args.h
testing
test_args.cc
Generated on Thu Nov 6 2025 16:11:29 for Flutter Engine by
1.9.8