mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
29 lines
882 B
C
29 lines
882 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.
|
|
|
|
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
|
|
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
|
|
|
|
#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
|
|
|
|
#include <glib.h>
|
|
#include <stdint.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
// Helper functions for the tests. This is not included in the shell library.
|
|
|
|
// Helper function to convert a hexadecimal string (e.g. "01feab") into GBytes
|
|
GBytes* hex_string_to_bytes(const gchar* hex_string);
|
|
|
|
// Helper function to convert GBytes into a hexadecimal string (e.g. "01feab")
|
|
gchar* bytes_to_hex_string(GBytes* bytes);
|
|
|
|
// Creates a mock engine that responds to platform messages.
|
|
FlEngine* make_mock_engine();
|
|
|
|
G_END_DECLS
|
|
|
|
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEST_H_
|