Flutter Engine
 
Loading...
Searching...
No Matches
platform_view_android_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 "gmock/gmock.h"
6#include "gtest/gtest.h"
8#include "third_party/googletest/googlemock/include/gmock/gmock-nice-strict.h"
9
10namespace flutter {
11namespace testing {
12
13// TODO(matanlurey): Re-enable.
14//
15// This test (and the entire suite) was skipped on CI (see
16// https://github.com/flutter/flutter/issues/163742) and has since bit rotted
17// (we fallback to OpenGLES on emulators for performance reasons); either fix
18// the test, or remove it.
19#if !SLIMPELLER
20TEST(AndroidPlatformView, DISABLED_SelectsVulkanBasedOnApiLevel) {
21 Settings settings;
22 settings.enable_software_rendering = false;
23 settings.enable_impeller = true;
24
25 EXPECT_EQ(FlutterMain::SelectedRenderingAPI(settings, 29),
27 EXPECT_EQ(FlutterMain::SelectedRenderingAPI(settings, 24),
29}
30#endif // !SLIMPELLER
31
32} // namespace testing
33} // namespace flutter
static AndroidRenderingAPI SelectedRenderingAPI(const flutter::Settings &settings, int api_level)
TEST(NativeAssetsManagerTest, NoAvailableAssets)
bool enable_software_rendering
Definition settings.h:317