Index: chromeos/dbus/fake_cras_audio_client.cc |
diff --git a/chromeos/dbus/fake_cras_audio_client.cc b/chromeos/dbus/fake_cras_audio_client.cc |
index 3ee4c4d45a829f735ae5d2ba5c8aaf77da0a7cb8..23755bc676f66cc2e3ab1ca93c2d342a5e70c54b 100644 |
--- a/chromeos/dbus/fake_cras_audio_client.cc |
+++ b/chromeos/dbus/fake_cras_audio_client.cc |
@@ -227,6 +227,12 @@ void FakeCrasAudioClient::NotifyOutputNodeVolumeChangedForTesting( |
OutputNodeVolumeChanged(node_id, volume)); |
} |
+void FakeCrasAudioClient::NotifyAudioClientRestartedForTesting( |
+ const AudioNodeList& new_nodes) { |
+ SetAudioNodesForTesting(new_nodes); |
+ FOR_EACH_OBSERVER(Observer, observers_, AudioClientRestarted()); |
+} |
+ |
AudioNodeList::iterator FakeCrasAudioClient::FindNode(uint64_t node_id) { |
return std::find_if( |
node_list_.begin(), node_list_.end(), |