Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8721)

Unified Diff: chromeos/dbus/fake_cras_audio_client.cc

Issue 2190773002: Fix Volume slider is captured in screenshot done in touchview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cras side unittest Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(),
« chromeos/dbus/fake_cras_audio_client.h ('K') | « chromeos/dbus/fake_cras_audio_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698