Flutter Engine
The Flutter Engine
Functions
flow_run_all_unittests.cc File Reference
#include "flutter/fml/backtrace.h"
#include "flutter/fml/build_config.h"
#include "flutter/fml/command_line.h"
#include "flutter/fml/logging.h"
#include "gtest/gtest.h"
#include "flow_test_utils.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 13 of file flow_run_all_unittests.cc.

13 {
15 testing::InitGoogleTest(&argc, argv);
17
18#if defined(OS_FUCHSIA)
19 flutter::SetGoldenDir(cmd.GetOptionValueWithDefault(
20 "golden-dir", "/pkg/data/flutter/testing/resources"));
21#else
23 cmd.GetOptionValueWithDefault("golden-dir", "flutter/testing/resources"));
24#endif
25 flutter::SetFontFile(cmd.GetOptionValueWithDefault(
26 "font-file",
27 "flutter/third_party/txt/third_party/fonts/Roboto-Regular.ttf"));
28 return RUN_ALL_TESTS();
29}
char ** argv
Definition: library.h:9
void SetGoldenDir(const std::string &dir)
void SetFontFile(const std::string &file)
void InstallCrashHandler()
Definition: backtrace.cc:126
CommandLine CommandLineFromPlatformOrArgcArgv(int argc, const char *const *argv)
Definition: command_line.h:242