Route collection export targets through platform policy
This commit is contained in:
@@ -192,6 +192,32 @@ void video_export_builds_suggested_name(pp::tests::Harness& harness)
|
||||
PP_EXPECT(harness, animation.value().name == "demo-animation");
|
||||
}
|
||||
|
||||
void collection_export_target_plan_selects_platform_destination(pp::tests::Harness& harness)
|
||||
{
|
||||
const auto layer_collection = pp::app::plan_document_export_collection_target(
|
||||
pp::app::DocumentExportCollectionKind::layers,
|
||||
true);
|
||||
const auto frame_collection = pp::app::plan_document_export_collection_target(
|
||||
pp::app::DocumentExportCollectionKind::animation_frames,
|
||||
true);
|
||||
const auto picked_layers = pp::app::plan_document_export_collection_target(
|
||||
pp::app::DocumentExportCollectionKind::layers,
|
||||
false);
|
||||
|
||||
PP_EXPECT(
|
||||
harness,
|
||||
layer_collection.destination == pp::app::DocumentExportCollectionDestination::work_directory_collection);
|
||||
PP_EXPECT(
|
||||
harness,
|
||||
frame_collection.destination == pp::app::DocumentExportCollectionDestination::work_directory_collection);
|
||||
PP_EXPECT(
|
||||
harness,
|
||||
picked_layers.destination == pp::app::DocumentExportCollectionDestination::picked_directory_stem);
|
||||
PP_EXPECT(harness, layer_collection.suffix == "_layers");
|
||||
PP_EXPECT(harness, frame_collection.suffix == "_frames");
|
||||
PP_EXPECT(harness, picked_layers.suffix == "_layers");
|
||||
}
|
||||
|
||||
void export_start_allows_valid_canvas_state(pp::tests::Harness& harness)
|
||||
{
|
||||
PP_EXPECT(
|
||||
@@ -525,6 +551,7 @@ int main()
|
||||
harness.run("collection export builds directory and stem", collection_export_builds_directory_and_stem);
|
||||
harness.run("picked directory export builds stem", picked_directory_export_builds_stem);
|
||||
harness.run("video export builds suggested name", video_export_builds_suggested_name);
|
||||
harness.run("collection export target plan selects platform destination", collection_export_target_plan_selects_platform_destination);
|
||||
harness.run("export start allows valid canvas state", export_start_allows_valid_canvas_state);
|
||||
harness.run("export start blocks demo only when license required", export_start_blocks_demo_only_when_license_required);
|
||||
harness.run("export start reports missing canvas after license gate", export_start_reports_missing_canvas_after_license_gate);
|
||||
|
||||
Reference in New Issue
Block a user