Skip to content

Commit

Permalink
Bump to JUCE 8 develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
sudara committed Sep 12, 2024
1 parent e169995 commit 1f0b925
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion JUCE
Submodule JUCE updated 582 files
4 changes: 0 additions & 4 deletions benchmarks/Benchmarks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ TEST_CASE ("Boot performance")
BENCHMARK_ADVANCED ("Processor constructor")
(Catch::Benchmark::Chronometer meter)
{
auto gui = juce::ScopedJuceInitialiser_GUI {};
std::vector<Catch::Benchmark::storage_for<PluginProcessor>> storage (size_t (meter.runs()));
meter.measure ([&] (int i) { storage[(size_t) i].construct(); });
};

BENCHMARK_ADVANCED ("Processor destructor")
(Catch::Benchmark::Chronometer meter)
{
auto gui = juce::ScopedJuceInitialiser_GUI {};
std::vector<Catch::Benchmark::destructable_object<PluginProcessor>> storage (size_t (meter.runs()));
for (auto& s : storage)
s.construct();
Expand All @@ -25,8 +23,6 @@ TEST_CASE ("Boot performance")
BENCHMARK_ADVANCED ("Editor open and close")
(Catch::Benchmark::Chronometer meter)
{
auto gui = juce::ScopedJuceInitialiser_GUI {};

PluginProcessor plugin;

// due to complex construction logic of the editor, let's measure open/close together
Expand Down
2 changes: 1 addition & 1 deletion cmake
5 changes: 0 additions & 5 deletions tests/PluginBasics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ TEST_CASE ("Plugin instance", "[instance]")
{
PluginProcessor testPlugin;

// This lets us use JUCE's MessageManager without leaking.
// PluginProcessor might need this if you use the APVTS for example.
// You'll also need it for tests that rely on juce::Graphics, juce::Timer, etc.
auto gui = juce::ScopedJuceInitialiser_GUI {};

SECTION ("name")
{
CHECK_THAT (testPlugin.getName().toStdString(),
Expand Down
5 changes: 2 additions & 3 deletions tests/helpers/test_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
});
*/
[[maybe_unused]] void runWithinPluginEditor (const std::function<void (PluginProcessor& plugin)>& testCode)
[[maybe_unused]] static void runWithinPluginEditor (const std::function<void (PluginProcessor& plugin)>& testCode)
{
PluginProcessor plugin;
auto gui = juce::ScopedJuceInitialiser_GUI {};
auto editor = plugin.createEditorIfNeeded();
const auto editor = plugin.createEditorIfNeeded();

testCode (plugin);

Expand Down

0 comments on commit 1f0b925

Please sign in to comment.