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/audio_node.h"
7 #include "base/format_macros.h"
8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/stringprintf.h"
13 AudioNode::AudioNode()
20 std::string
AudioNode::ToString() const {
22 base::StringAppendF(&result
,
24 is_input
? "true" : "false");
25 base::StringAppendF(&result
,
27 base::Uint64ToString(id
).c_str());
28 base::StringAppendF(&result
,
31 base::StringAppendF(&result
,
34 base::StringAppendF(&result
,
37 base::StringAppendF(&result
,
39 active
? "true" : "false");
40 base::StringAppendF(&result
,
42 base::Uint64ToString(plugged_time
).c_str());
47 } // namespace chromeos