mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
30 lines
969 B
C++
30 lines
969 B
C++
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#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"
|
|
|
|
int main(int argc, char** argv) {
|
|
fml::InstallCrashHandler();
|
|
testing::InitGoogleTest(&argc, argv);
|
|
fml::CommandLine cmd = fml::CommandLineFromArgcArgv(argc, argv);
|
|
|
|
#if defined(OS_FUCHSIA)
|
|
flutter::SetGoldenDir(cmd.GetOptionValueWithDefault(
|
|
"golden-dir", "/pkg/data/flutter/testing/resources"));
|
|
#else
|
|
flutter::SetGoldenDir(
|
|
cmd.GetOptionValueWithDefault("golden-dir", "flutter/testing/resources"));
|
|
#endif
|
|
flutter::SetFontFile(cmd.GetOptionValueWithDefault(
|
|
"font-file",
|
|
"flutter/third_party/txt/third_party/fonts/Roboto-Regular.ttf"));
|
|
return RUN_ALL_TESTS();
|
|
}
|