Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
fl_egl_image_test.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
9
10TEST(FlEGLImageTest, Test) {
11 ::testing::NiceMock<flutter::testing::MockEpoxy> epoxy;
12
13 EXPECT_CALL(epoxy, eglCreateImageKHR(testing::_, testing::_, testing::_,
14 testing::_, testing::_))
15 .Times(1);
16 EXPECT_CALL(epoxy, eglDestroyImageKHR(testing::_, testing::_)).Times(1);
17
18 GLuint texture_id = 99;
20 EXPECT_NE(fl_egl_image_get_image(image), EGL_NO_IMAGE_KHR);
21}
FlutterVulkanImage * image
g_autoptr(FlEngine) engine
FlEGLImage * fl_egl_image_new(GLuint texture)
EGLImage fl_egl_image_get_image(FlEGLImage *image)
TEST(FlEGLImageTest, Test)
int64_t texture_id