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) {
14 fml::InstallCrashHandler();
15 testing::InitGoogleTest(argc: &argc, argv);
16 fml::CommandLine cmd = fml::CommandLineFromPlatformOrArgcArgv(argc, argv);
17
18#if defined(OS_FUCHSIA)
19 flutter::SetGoldenDir(cmd.GetOptionValueWithDefault(
20 "golden-dir", "/pkg/data/flutter/testing/resources"));
21#else
22 flutter::SetGoldenDir(
23 cmd.GetOptionValueWithDefault(name: "golden-dir", default_value: "flutter/testing/resources"));
24#endif
25 flutter::SetFontFile(cmd.GetOptionValueWithDefault(
26 name: "font-file",
27 default_value: "flutter/third_party/txt/third_party/fonts/Roboto-Regular.ttf"));
28 return RUN_ALL_TESTS();
29}
30

source code of flutter_engine/flutter/flow/flow_run_all_unittests.cc