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

Unified Diff: chromeos/dbus/audio_node.cc

Issue 19861002: Add test coverage for CrasAudioHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit. Created 7 years, 5 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/dbus/audio_node.h ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/audio_node.cc
diff --git a/chromeos/dbus/audio_node.cc b/chromeos/dbus/audio_node.cc
index fd3f653c5ee140e1016e6325764911938e183cc6..2f567018e5f25e96c39e9f336b19da0dcc6334b7 100644
--- a/chromeos/dbus/audio_node.cc
+++ b/chromeos/dbus/audio_node.cc
@@ -17,6 +17,22 @@ AudioNode::AudioNode()
plugged_time(0) {
}
+AudioNode::AudioNode(bool is_input,
+ uint64 id,
+ std::string device_name,
+ std::string type,
+ std::string name,
+ bool active,
+ uint64 plugged_time)
+ : is_input(is_input),
+ id(id),
+ device_name(device_name),
+ type(type),
+ name(name),
+ active(active),
+ plugged_time(plugged_time) {
+}
+
std::string AudioNode::ToString() const {
std::string result;
base::StringAppendF(&result,
« no previous file with comments | « chromeos/dbus/audio_node.h ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698