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

Unified Diff: chromeos/audio/cras_audio_handler_unittest.cc

Issue 515573003: app_shell: Do simple audio initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wrap line Created 6 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
« no previous file with comments | « chromeos/audio/audio_device.cc ('k') | chromeos/dbus/cras_audio_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/cras_audio_handler_unittest.cc
diff --git a/chromeos/audio/cras_audio_handler_unittest.cc b/chromeos/audio/cras_audio_handler_unittest.cc
index dec728e4a5510818696aed61d211422c4b8a0f9a..c83c21b366f80988cf1872b3c54dfa8e909832ee 100644
--- a/chromeos/audio/cras_audio_handler_unittest.cc
+++ b/chromeos/audio/cras_audio_handler_unittest.cc
@@ -255,7 +255,7 @@ class CrasAudioHandlerTest : public testing::Test {
DBusThreadManager::Initialize();
cras_audio_client_stub_ = static_cast<CrasAudioClientStubImpl*>(
DBusThreadManager::Get()->GetCrasAudioClient());
- cras_audio_client_stub_->SetAudioDevices(audio_nodes);
+ cras_audio_client_stub_->SetAudioNodesForTesting(audio_nodes);
audio_pref_handler_ = new AudioDevicesPrefHandlerStub();
CrasAudioHandler::Initialize(audio_pref_handler_);
cras_audio_handler_ = CrasAudioHandler::Get();
@@ -265,7 +265,8 @@ class CrasAudioHandlerTest : public testing::Test {
}
void ChangeAudioNodes(const AudioNodeList& audio_nodes) {
- cras_audio_client_stub_->ChangeAudioNodes(audio_nodes);
+ cras_audio_client_stub_->SetAudioNodesAndNotifyObserversForTesting(
+ audio_nodes);
message_loop_.RunUntilIdle();
}
« no previous file with comments | « chromeos/audio/audio_device.cc ('k') | chromeos/dbus/cras_audio_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698