OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
7 | 7 |
8 #include "chromeos/chromeos_export.h" | 8 #include "chromeos/chromeos_export.h" |
9 #include "chromeos/dbus/cras_audio_client.h" | 9 #include "chromeos/dbus/cras_audio_client.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 // Calls SetAudioNodesForTesting() and additionally notifies |observers_|. | 44 // Calls SetAudioNodesForTesting() and additionally notifies |observers_|. |
45 void SetAudioNodesAndNotifyObserversForTesting( | 45 void SetAudioNodesAndNotifyObserversForTesting( |
46 const AudioNodeList& new_nodes); | 46 const AudioNodeList& new_nodes); |
47 | 47 |
48 private: | 48 private: |
49 VolumeState volume_state_; | 49 VolumeState volume_state_; |
50 AudioNodeList node_list_; | 50 AudioNodeList node_list_; |
51 uint64 active_input_node_id_; | 51 uint64 active_input_node_id_; |
52 uint64 active_output_node_id_; | 52 uint64 active_output_node_id_; |
53 ObserverList<Observer> observers_; | 53 base::ObserverList<Observer> observers_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); | 55 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace chromeos | 58 } // namespace chromeos |
59 | 59 |
60 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 60 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
OLD | NEW |