Skip to content

Commit de951c2

Browse files
committed
Minor. Clean up unit test class name
Signed-off-by: AMZN-Gene <[email protected]>
1 parent 253fc30 commit de951c2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Code/Framework/AzToolsFramework/Tests/Prefab/PrefabProcessorRemoveComponentPerPlatformTests.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@
1717
namespace UnitTest
1818
{
1919
constexpr AZ::Uuid Uuid_RemoveThisComponent("{6E29CD1C-D2CF-4763-80E1-F45FFA439A6A}");
20-
constexpr AZ::Uuid Uuid_ServerComponent("{9218A873-1525-4278-AC07-17AD6A6B8374}");
20+
constexpr AZ::Uuid Uuid_KeepThisComponent("{9218A873-1525-4278-AC07-17AD6A6B8374}");
2121
constexpr AZ::Uuid Uuid_DependentComponent("{95421870-F6FD-44D2-AA5F-AF85FD977F75}");
2222
const AZStd::set<AZ::Uuid> ExcludedComponents = { Uuid_RemoveThisComponent };
2323

2424
const char* PlatformTag = "platform_1";
2525
const char* EntityName = "entity_1";
2626
const AZ::Crc32 ComponentService = AZ_CRC("good_service");
2727

28-
class ServerComponent : public AZ::Component
28+
class KeepThisComponent : public AZ::Component
2929
{
3030
public:
31-
AZ_COMPONENT(ServerComponent, Uuid_ServerComponent);
31+
AZ_COMPONENT(KeepThisComponent, Uuid_KeepThisComponent);
3232
static void Reflect(AZ::ReflectContext* context)
3333
{
3434
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
3535
{
36-
serializeContext->Class<ServerComponent, AZ::Component>()->Version(1);
36+
serializeContext->Class<KeepThisComponent, AZ::Component>()->Version(1);
3737
}
3838
}
3939

40-
ServerComponent() = default;
40+
KeepThisComponent() = default;
4141
void Activate() override {}
4242
void Deactivate() override {}
4343
};
@@ -93,7 +93,7 @@ namespace UnitTest
9393
{
9494
m_application.reset(aznew AzToolsFramework::ToolsApplication());
9595
m_application.get()->Start(AzFramework::Application::Descriptor());
96-
m_application.get()->RegisterComponentDescriptor(ServerComponent::CreateDescriptor());
96+
m_application.get()->RegisterComponentDescriptor(KeepThisComponent::CreateDescriptor());
9797
m_application.get()->RegisterComponentDescriptor(RemoveThisComponent::CreateDescriptor());
9898
m_application.get()->RegisterComponentDescriptor(DependentComponent::CreateDescriptor());
9999

@@ -155,7 +155,7 @@ namespace UnitTest
155155
PrefabDocument document("testPrefab");
156156
AzToolsFramework::Prefab::PrefabDom prefabDom;
157157
AZStd::vector<AZ::Entity*> entities;
158-
entities.emplace_back(CreateSourceEntity(EntityName, {Uuid_RemoveThisComponent, Uuid_ServerComponent}));
158+
entities.emplace_back(CreateSourceEntity(EntityName, { Uuid_RemoveThisComponent, Uuid_KeepThisComponent }));
159159
ConvertEntitiesToPrefab(entities, prefabDom);
160160

161161
ASSERT_TRUE(document.SetPrefabDom(AZStd::move(prefabDom)));
@@ -171,7 +171,7 @@ namespace UnitTest
171171
if (entity->GetName() == EntityName)
172172
{
173173
EXPECT_NE(entity->FindComponent(Uuid_RemoveThisComponent), nullptr);
174-
EXPECT_NE(entity->FindComponent(Uuid_ServerComponent), nullptr);
174+
EXPECT_NE(entity->FindComponent(Uuid_KeepThisComponent), nullptr);
175175
}
176176
return true;
177177
}
@@ -194,7 +194,7 @@ namespace UnitTest
194194
if (entity->GetName() == EntityName)
195195
{
196196
EXPECT_EQ(entity->FindComponent(Uuid_RemoveThisComponent), nullptr);
197-
EXPECT_NE(entity->FindComponent(Uuid_ServerComponent), nullptr);
197+
EXPECT_NE(entity->FindComponent(Uuid_KeepThisComponent), nullptr);
198198
}
199199
return true;
200200
}
@@ -215,7 +215,7 @@ namespace UnitTest
215215
PrefabDocument document("testPrefab");
216216
AzToolsFramework::Prefab::PrefabDom prefabDom;
217217
AZStd::vector<AZ::Entity*> entities;
218-
entities.emplace_back(CreateSourceEntity(EntityName, { Uuid_RemoveThisComponent, Uuid_ServerComponent, Uuid_DependentComponent }));
218+
entities.emplace_back(CreateSourceEntity(EntityName, { Uuid_RemoveThisComponent, Uuid_KeepThisComponent, Uuid_DependentComponent }));
219219
ConvertEntitiesToPrefab(entities, prefabDom);
220220

221221
ASSERT_TRUE(document.SetPrefabDom(AZStd::move(prefabDom)));

0 commit comments

Comments
 (0)