Changeset View
Changeset View
Standalone View
Standalone View
source/blender/asset_system/tests/asset_library_service_test.cc
- This file was moved from source/blender/blenkernel/intern/asset_library_service_test.cc.
| Show All 10 Lines | |||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "DNA_asset_types.h" | #include "DNA_asset_types.h" | ||||
| #include "CLG_log.h" | #include "CLG_log.h" | ||||
| #include "testing/testing.h" | #include "testing/testing.h" | ||||
| namespace blender::bke::tests { | namespace blender::asset_system::tests { | ||||
| const bUUID UUID_POSES_ELLIE("df60e1f6-2259-475b-93d9-69a1b4a8db78"); | const bUUID UUID_POSES_ELLIE("df60e1f6-2259-475b-93d9-69a1b4a8db78"); | ||||
| class AssetLibraryServiceTest : public testing::Test { | class AssetLibraryServiceTest : public testing::Test { | ||||
| public: | public: | ||||
| CatalogFilePath asset_library_root_; | CatalogFilePath asset_library_root_; | ||||
| CatalogFilePath temp_library_path_; | CatalogFilePath temp_library_path_; | ||||
| ▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | TEST_F(AssetLibraryServiceTest, has_any_unsaved_catalogs_after_write) | ||||
| EXPECT_TRUE(cat->flags.has_unsaved_changes); | EXPECT_TRUE(cat->flags.has_unsaved_changes); | ||||
| cat_service->write_to_disk(writable_dir + "dummy_path.blend"); | cat_service->write_to_disk(writable_dir + "dummy_path.blend"); | ||||
| EXPECT_FALSE(service->has_any_unsaved_catalogs()) | EXPECT_FALSE(service->has_any_unsaved_catalogs()) | ||||
| << "Written AssetCatalogService should have no unsaved catalogs"; | << "Written AssetCatalogService should have no unsaved catalogs"; | ||||
| EXPECT_FALSE(cat->flags.has_unsaved_changes); | EXPECT_FALSE(cat->flags.has_unsaved_changes); | ||||
| } | } | ||||
| } // namespace blender::bke::tests | } // namespace blender::asset_system::tests | ||||