Merge Ψ-W1-T3: publish the Media Explorer import into the Media Explorer action section as well as Main
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
|
||||
#include "../src/core/version/app_version.h"
|
||||
|
||||
// REAPER-free header; pulled in for the ingest action's FOREVER-STABLE id suffixes, so
|
||||
// the composition assertions below check the strings that actually ship.
|
||||
#include "../src/shell/actions/ingest.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
|
||||
@@ -151,6 +155,27 @@ static void testChannelQualifiedIdAndNameComposition() {
|
||||
}
|
||||
}
|
||||
|
||||
static void testMediaExplorerImportIdsAreDistinctAndChannelIsolated() {
|
||||
// The Media-Explorer import publishes into TWO action sections, and a custom_action
|
||||
// idStr must be unique across all sections — so the two entries carry two suffixes.
|
||||
// Both are FOREVER-STABLE per channel. Composed from the SHIPPED constants and checked
|
||||
// against spelled-out literals, so a suffix edit in ingest.h fails here.
|
||||
const std::string mainId = channelCommandId(kIngestImportMediaExplorerId);
|
||||
const std::string mxId = channelCommandId(kIngestImportMediaExplorerMxId);
|
||||
|
||||
if (isBeta()) {
|
||||
CHECK(mainId == "CEREBELLUM_REASAMPLER_BETA_INGEST_IMPORT_MEDIA_EXPLORER");
|
||||
CHECK(mxId == "CEREBELLUM_REASAMPLER_BETA_INGEST_IMPORT_MEDIA_EXPLORER_MX");
|
||||
CHECK(channelActionName("import Media Explorer file into selected track") ==
|
||||
"ReaSampler beta: import Media Explorer file into selected track");
|
||||
} else {
|
||||
CHECK(mainId == "CEREBELLUM_REASAMPLER_INGEST_IMPORT_MEDIA_EXPLORER");
|
||||
CHECK(mxId == "CEREBELLUM_REASAMPLER_INGEST_IMPORT_MEDIA_EXPLORER_MX");
|
||||
CHECK(channelActionName("import Media Explorer file into selected track") ==
|
||||
"ReaSampler: import Media Explorer file into selected track");
|
||||
}
|
||||
}
|
||||
|
||||
static void testStampClassifiesAsStampedOnOwnChannel() {
|
||||
// The V4 stamp-classifiability requirement: the value a channel WRITES (stampVersion())
|
||||
// must classify as Stamped when that same channel reads it back — on BOTH channels. A
|
||||
@@ -277,6 +302,7 @@ int main() {
|
||||
testVstIdentityStringsForkByChannel();
|
||||
testVstIdentityAndDataNamespaceShareOneChannel();
|
||||
testChannelQualifiedIdAndNameComposition();
|
||||
testMediaExplorerImportIdsAreDistinctAndChannelIsolated();
|
||||
testStampClassifiesAsStampedOnOwnChannel();
|
||||
testParseWellFormed();
|
||||
testParseRejectsMalformed();
|
||||
|
||||
Reference in New Issue
Block a user