Flutter Engine
The Flutter Engine
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
13TEST(AndroidPlatformView, SelectsVulkanBasedOnApiLevel) {
15 settings.enable_software_rendering = false;
16 settings.enable_impeller = true;
17
18 int api_level = android_get_device_api_level();
19 EXPECT_GT(api_level, 0);
20 if (api_level >= 29) {
23 } else {
26 }
27}
28
29TEST(AndroidPlatformView, SoftwareRenderingNotSupportedWithImpeller) {
31 settings.enable_software_rendering = true;
32 settings.enable_impeller = true;
33
35}
36
37} // namespace testing
38} // namespace flutter
static AndroidRenderingAPI SelectedRenderingAPI(const flutter::Settings &settings)
TEST(DisplayListComplexity, EmptyDisplayList)