Flutter Impeller
driver_info_vk_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 
8 
9 namespace impeller::testing {
10 
13 
14 TEST_P(DriverInfoVKTest, CanQueryDriverInfo) {
15  ASSERT_TRUE(GetContext());
16  const auto& driver_info =
18  ASSERT_NE(driver_info, nullptr);
19  // 1.1 is the base Impeller version. The driver can't be lower than that.
20  ASSERT_TRUE(driver_info->GetAPIVersion().IsAtLeast(Version{1, 1, 0}));
21  ASSERT_NE(driver_info->GetVendor(), VendorVK::kUnknown);
22  ASSERT_NE(driver_info->GetDeviceType(), DeviceTypeVK::kUnknown);
23  ASSERT_NE(driver_info->GetDriverName(), "");
24 }
25 
26 } // namespace impeller::testing
impeller::SurfaceContextVK::GetParent
const ContextVK & GetParent() const
Definition: surface_context_vk.cc:130
surface_context_vk.h
impeller::Version
Definition: version.h:16
impeller::testing
Definition: aiks_blur_unittests.cc:21
impeller::testing::INSTANTIATE_VULKAN_PLAYGROUND_SUITE
INSTANTIATE_VULKAN_PLAYGROUND_SUITE(DriverInfoVKTest)
impeller::VendorVK::kUnknown
@ kUnknown
impeller::testing::TEST_P
TEST_P(AiksTest, CanRenderMaskBlurHugeSigma)
Definition: aiks_blur_unittests.cc:23
impeller::BackendCast< SurfaceContextVK, Context >::Cast
static SurfaceContextVK & Cast(Context &base)
Definition: backend_cast.h:13
impeller::ContextVK::GetDriverInfo
const std::unique_ptr< DriverInfoVK > & GetDriverInfo() const
Definition: context_vk.cc:626
impeller::DeviceTypeVK::kUnknown
@ kUnknown
impeller::PlaygroundTest
Definition: playground_test.h:23
context_vk.h
playground_test.h