Flutter Engine
The Flutter Engine
testing
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
{
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
fml::CommandLine
Definition:
command_line.h:56
argv
char ** argv
Definition:
library.h:9
flutter::testing::GetArgsForProcess
const fml::CommandLine & GetArgsForProcess()
Definition:
test_args.cc:12
flutter::testing::gProcessArgs
static fml::CommandLine gProcessArgs
Definition:
test_args.cc:10
flutter::testing::SetArgsForProcess
void SetArgsForProcess(int argc, char **argv)
Definition:
test_args.cc:16
flutter
Definition:
asset_manager.cc:10
fml::CommandLineFromArgcArgv
CommandLine CommandLineFromArgcArgv(int argc, const char *const *argv)
Definition:
command_line.h:233
Generated on Sun Jun 23 2024 21:55:19 for Flutter Engine by
1.9.4