Skip to content

Commit c05f3d1

Browse files
committed
Fix issues
1 parent e661e00 commit c05f3d1

1 file changed

Lines changed: 3 additions & 40 deletions

File tree

tests/yup_audio_gui/yup_AudioDeviceManagerPanel.cpp

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -38,43 +38,6 @@ StringArray makeChannelNames (int count)
3838

3939
} // namespace
4040

41-
//==============================================================================
42-
class ButtonsSectionTests : public ::testing::Test
43-
{
44-
};
45-
46-
TEST_F (ButtonsSectionTests, ConstructsWithoutCrash)
47-
{
48-
ButtonsSection section;
49-
EXPECT_EQ (section.getNumChildComponents(), 2);
50-
}
51-
52-
TEST_F (ButtonsSectionTests, ApplyCallbackFires)
53-
{
54-
ButtonsSection section;
55-
bool called = false;
56-
section.onApply = [&]
57-
{
58-
called = true;
59-
};
60-
61-
section.onApply();
62-
EXPECT_TRUE (called);
63-
}
64-
65-
TEST_F (ButtonsSectionTests, CloseCallbackFires)
66-
{
67-
ButtonsSection section;
68-
bool called = false;
69-
section.onClose = [&]
70-
{
71-
called = true;
72-
};
73-
74-
section.onClose();
75-
EXPECT_TRUE (called);
76-
}
77-
7841
//==============================================================================
7942
class ChannelSectionTests : public ::testing::Test
8043
{
@@ -172,7 +135,7 @@ TEST_F (AudioDeviceManagerPanelTests, HasExpectedChildComponentCount)
172135
{
173136
AudioDeviceManager manager;
174137
AudioDeviceManagerPanel panel (manager);
175-
// 7 direct children: type selector, IO selector, 2x channel section,
176-
// rate+buffer selector, MIDI section, buttons section
177-
EXPECT_EQ (panel.getNumChildComponents(), 7);
138+
// 6 direct children: type selector, IO selector, 2x channel section,
139+
// rate+buffer selector, MIDI section
140+
EXPECT_EQ (panel.getNumChildComponents(), 6);
178141
}

0 commit comments

Comments
 (0)