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/build_config.h" |
6 | #include "flutter/fml/command_line.h" |
7 | #include "flutter/fml/logging.h" |
8 | #include "gtest/gtest.h" |
9 | |
10 | #include "flow_test_utils.h" |
11 | |
12 | int main(int argc, char** argv) { |
13 | testing::InitGoogleTest(&argc, argv); |
14 | fml::CommandLine cmd = fml::CommandLineFromArgcArgv(argc, argv); |
15 | |
16 | #if defined(OS_FUCHSIA) |
17 | flutter::SetGoldenDir(cmd.GetOptionValueWithDefault( |
18 | "golden-dir", "/pkg/data/flutter/testing/resources")); |
19 | #else |
20 | flutter::SetGoldenDir( |
21 | cmd.GetOptionValueWithDefault("golden-dir", "flutter/testing/resources")); |
22 | #endif |
23 | flutter::SetFontFile(cmd.GetOptionValueWithDefault( |
24 | "font-file", |
25 | "flutter/third_party/txt/third_party/fonts/Roboto-Regular.ttf")); |
26 | return RUN_ALL_TESTS(); |
27 | } |
28 |