Flutter Engine
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.

References fml::CommandLineFromArgcArgv(), fml::CommandLine::GetOptionValueWithDefault(), fml::InstallCrashHandler(), flutter::SetFontFile(), and flutter::SetGoldenDir().

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