Flutter Engine
The Flutter Engine
flutter_runner_product_configuration_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 <gtest/gtest.h>
6
7#include "flutter/shell/platform/fuchsia/flutter/flutter_runner_product_configuration.h"
8
9using namespace flutter_runner;
10
11namespace flutter_runner_test {
12
13class FlutterRunnerProductConfigurationTest : public testing::Test {};
14
16 const std::string json_string = "{ \"invalid json string\" }}} ";
17 const uint64_t expected_intercept_all_input = false;
18
21 EXPECT_EQ(expected_intercept_all_input,
22 product_config.get_intercept_all_input());
23}
24
26 const std::string json_string = "";
27 const uint64_t expected_intercept_all_input = false;
28
31 EXPECT_EQ(expected_intercept_all_input,
32 product_config.get_intercept_all_input());
33}
34
36 const std::string json_string = "{ \"intercept_all_input\" : true } ";
37 const uint64_t expected_intercept_all_input = true;
38
41
42 EXPECT_EQ(expected_intercept_all_input,
43 product_config.get_intercept_all_input());
44}
45
47 const std::string json_string = "{ \"intercept_all_input\" : } ";
48 const uint64_t expected_intercept_all_input = false;
49
52
53 EXPECT_EQ(expected_intercept_all_input,
54 product_config.get_intercept_all_input());
55}
56
57} // namespace flutter_runner_test
TEST_F(AccessibilityBridgeTest, RegistersViewRef)