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 #include "chromeos/audio/cras_audio_handler.h" | 5 #include "chromeos/audio/cras_audio_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chromeos/audio/audio_devices_pref_handler.h" | 19 #include "chromeos/audio/audio_devices_pref_handler.h" |
20 #include "chromeos/audio/audio_devices_pref_handler_stub.h" | 20 #include "chromeos/audio/audio_devices_pref_handler_stub.h" |
21 #include "chromeos/dbus/audio_node.h" | 21 #include "chromeos/dbus/audio_node.h" |
22 #include "chromeos/dbus/dbus_thread_manager.h" | 22 #include "chromeos/dbus/dbus_thread_manager.h" |
23 #include "chromeos/dbus/fake_cras_audio_client.h" | 23 #include "chromeos/dbus/fake_cras_audio_client.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 namespace { | 27 namespace { |
(...skipping 3069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3097 cras_audio_handler_->GetPrimaryActiveOutputDevice(&active_output)); | 3097 cras_audio_handler_->GetPrimaryActiveOutputDevice(&active_output)); |
3098 EXPECT_EQ(kInternalSpeaker.id, active_output.id); | 3098 EXPECT_EQ(kInternalSpeaker.id, active_output.id); |
3099 EXPECT_EQ(kInternalSpeaker.id, | 3099 EXPECT_EQ(kInternalSpeaker.id, |
3100 cras_audio_handler_->GetPrimaryActiveOutputNode()); | 3100 cras_audio_handler_->GetPrimaryActiveOutputNode()); |
3101 EXPECT_FALSE(cras_audio_handler_->IsOutputMuted()); | 3101 EXPECT_FALSE(cras_audio_handler_->IsOutputMuted()); |
3102 EXPECT_EQ(1, test_observer_->output_mute_changed_count()); | 3102 EXPECT_EQ(1, test_observer_->output_mute_changed_count()); |
3103 EXPECT_TRUE(test_observer_->output_mute_by_system()); | 3103 EXPECT_TRUE(test_observer_->output_mute_by_system()); |
3104 } | 3104 } |
3105 | 3105 |
3106 } // namespace chromeos | 3106 } // namespace chromeos |
OLD | NEW |