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
3 // found in the LICENSE file.
5 #include "chromeos/dbus/volume_state.h"
7 #include "base/format_macros.h"
8 #include "base/stringprintf.h"
12 VolumeState::VolumeState()
19 std::string
VolumeState::ToString() const {
21 base::StringAppendF(&result
,
22 "output_volume = %d ",
24 base::StringAppendF(&result
,
26 output_mute
? "true" : "false");
27 base::StringAppendF(&result
,
29 output_mute
? "true" : "false");
30 base::StringAppendF(&result
,
33 base::StringAppendF(&result
,
35 input_mute
? "true" : "false");
40 } // namespace chromeos