Benign repos Download

android_context_gl_unittests.cc

imports flutter/shell/platform/android/android_context_gl_skia.himports flutter/shell/platform/android/android_egl_surface.h
SHA-25689b893cadfe6841d860c714048a5cc022265a9aa2a6813a69274e345aafdb971

Evidence

imports flutter/shell/platform/android/android_context_gl_skia.h lines 1–24
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#define FML_USED_ON_EMBEDDER
6
7#include <memory>
8#include "flutter/shell/common/thread_host.h"
9#include "flutter/shell/platform/android/android_context_gl_skia.h"
10#include "flutter/shell/platform/android/android_egl_surface.h"
11#include "flutter/shell/platform/android/android_environment_gl.h"
12#include "flutter/shell/platform/android/android_surface_gl_skia.h"
13#include "fml/logging.h"
14#include "gmock/gmock.h"
15#include "gtest/gtest.h"
16#include "impeller/core/runtime_types.h"
17#include "shell/platform/android/context/android_context.h"
18
19namespace flutter {
⋯5 lines
C/C++ unit-test EXPECT_TRUE marker lines 121–128
121:40… ext);
122 EXPECT_NE(context.get(), nullptr);
123 context.reset();
124 EXPECT_TRUE(main_context->abandoned());
125}
126
127TEST(AndroidContextGl, CreateImpeller) {
128 auto impeller_context = std::make_shared<TestImpeller …
C/C++ unit-test EXPECT_EQ marker lines 178–183
178:23… urface, nullptr);
179 android_surface->CreateSnapshotSurface();
180 EXPECT_EQ(onscreen_surface, android_surface->GetOnscreenSurface());
181}
182
183TEST(AndroidSurfaceGL, CreateSnapshopSurfaceWhenOnscreenSurfaceIsN …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.