Flutter Engine
The Flutter Engine
flow_run_all_unittests.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/fml/backtrace.h"
6#include "flutter/fml/build_config.h"
7#include "flutter/fml/command_line.h"
8#include "flutter/fml/logging.h"
9#include "gtest/gtest.h"
10
11#include "flow_test_utils.h"
12
13int main(int argc, char** argv) {
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}
int main(int argc, char **argv)
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