test: rename unit tests to Component_Category_SubBehavior format, remove Placeholder tests

This commit is contained in:
2026-03-20 03:18:30 +08:00
parent 9c5bd3c33f
commit 9ad699cd6f
12 changed files with 44 additions and 84 deletions

View File

@@ -3,15 +3,15 @@
#include <dxgi1_4.h>
#include <windows.h>
TEST_F(D3D12TestFixture, Device_CreateDevice_Success) {
TEST_F(D3D12TestFixture, Device_Create_Success) {
ASSERT_NE(GetDevice(), nullptr);
}
TEST_F(D3D12TestFixture, Device_GetCommandQueue_Success) {
TEST_F(D3D12TestFixture, Device_Get_CommandQueue) {
ASSERT_NE(GetCommandQueue(), nullptr);
}
TEST_F(D3D12TestFixture, Device_CheckFeatureLevel) {
TEST_F(D3D12TestFixture, Device_Get_FeatureLevel) {
static const D3D_FEATURE_LEVEL requestedLevels[] = { D3D_FEATURE_LEVEL_12_0 };
D3D12_FEATURE_DATA_FEATURE_LEVELS featureLevels = {};
featureLevels.NumFeatureLevels = 1;
@@ -22,7 +22,7 @@ TEST_F(D3D12TestFixture, Device_CheckFeatureLevel) {
EXPECT_EQ(featureLevels.MaxSupportedFeatureLevel, D3D_FEATURE_LEVEL_12_0);
}
TEST_F(D3D12TestFixture, Device_GetDescriptorHandleIncrementSize) {
TEST_F(D3D12TestFixture, Device_Get_DescriptorHandleIncrementSize) {
UINT cbvSrvUavSize = GetDevice()->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
EXPECT_GT(cbvSrvUavSize, 0);
@@ -36,7 +36,7 @@ TEST_F(D3D12TestFixture, Device_GetDescriptorHandleIncrementSize) {
EXPECT_GT(dsvSize, 0);
}
TEST_F(D3D12TestFixture, Device_CheckShaderModelSupport) {
TEST_F(D3D12TestFixture, Device_Get_ShaderModelSupport) {
D3D12_FEATURE_DATA_SHADER_MODEL shaderModel = {};
shaderModel.HighestShaderModel = D3D_SHADER_MODEL_6_0;
@@ -45,7 +45,7 @@ TEST_F(D3D12TestFixture, Device_CheckShaderModelSupport) {
EXPECT_GE(shaderModel.HighestShaderModel, D3D_SHADER_MODEL_6_0);
}
TEST_F(D3D12TestFixture, Device_CheckResourceBindingTier) {
TEST_F(D3D12TestFixture, Device_Get_ResourceBindingTier) {
D3D12_FEATURE_DATA_D3D12_OPTIONS options = {};
HRESULT hr = GetDevice()->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, &options, sizeof(options));
@@ -53,7 +53,7 @@ TEST_F(D3D12TestFixture, Device_CheckResourceBindingTier) {
EXPECT_GE(options.ResourceBindingTier, D3D12_RESOURCE_BINDING_TIER_1);
}
TEST_F(D3D12TestFixture, Device_CheckTiledResourcesTier) {
TEST_F(D3D12TestFixture, Device_Get_TiledResourcesTier) {
D3D12_FEATURE_DATA_D3D12_OPTIONS options = {};
HRESULT hr = GetDevice()->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, &options, sizeof(options));