fl_platform_handler_test.cc
imports flutter/shell/platform/linux/fl_binary_messenger_private.himports flutter/shell/platform/linux/fl_platform_handler.h
SHA-256f15633fb366cef2f60b9303a951ac9307063f8389f2d899a005fdcbed3cc251c
MaleculeMd₂(In₅Pa)
Evidence
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 <gtk/gtk.h>
6
7#include "flutter/shell/platform/linux/fl_binary_messenger_private.h"
8#include "flutter/shell/platform/linux/fl_platform_handler.h"
9#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_codec.h"
10#include "flutter/shell/platform/linux/testing/fl_mock_binary_messenger.h"
11#include "flutter/shell/platform/linux/testing/fl_test.h"
12
13#include "gmock/gmock.h"
14#include "gtest/gtest.h"
15
16G_DECLARE_FINAL_TYPE(FlTestApplication,
17 fl_test_application,
18 …
34:44… h will hold a reference to the
35 // application and stop it disposing. See
36 // https://gitlab.gnome.org/GNOME/gtk/-/issues/6190
37 gtk_application_ …
56:32… ic_cast<gboolean*>(user_data);
57 *called = TRUE;
58
59 EXPECT_TRUE(FL_IS_METHOD_SUCCESS_RESPONSE(response));
60
61 g_autoptr(FlValue) expected_result = fl_value_new_map();
62 fl_value_se …