OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/midi/midi_manager_alsa.h" | 5 #include "media/midi/midi_manager_alsa.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace media { | |
13 namespace midi { | 12 namespace midi { |
14 | 13 |
15 class MidiManagerAlsaTest : public ::testing::Test { | 14 class MidiManagerAlsaTest : public ::testing::Test { |
16 protected: | 15 protected: |
17 void SetUp() override { | 16 void SetUp() override { |
18 // Pre-instantiate typical MidiPort instances that are often used in | 17 // Pre-instantiate typical MidiPort instances that are often used in |
19 // following tests. | 18 // following tests. |
20 | 19 |
21 // Inputs. port_input_0_ == port_input_1_. | 20 // Inputs. port_input_0_ == port_input_1_. |
22 port_input_0_.reset(new MidiManagerAlsa::MidiPort( | 21 port_input_0_.reset(new MidiManagerAlsa::MidiPort( |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 EXPECT_EQ(1, alsa_seq_state_0_.card_client_count()); | 698 EXPECT_EQ(1, alsa_seq_state_0_.card_client_count()); |
700 } | 699 } |
701 | 700 |
702 TEST_F(MidiManagerAlsaTest, AlsaCards) { | 701 TEST_F(MidiManagerAlsaTest, AlsaCards) { |
703 // TODO(agoode): test add/remove of alsa cards. | 702 // TODO(agoode): test add/remove of alsa cards. |
704 } | 703 } |
705 | 704 |
706 // TODO(agoode): Test old -> new state event generation, using mocks. | 705 // TODO(agoode): Test old -> new state event generation, using mocks. |
707 | 706 |
708 } // namespace midi | 707 } // namespace midi |
709 } // namespace media | |
OLD | NEW |