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

Side by Side Diff: remoting/host/register_support_host_request_unittest.cc

Issue 7744041: Use new callbacks in the IqRequest interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/register_support_host_request.cc ('k') | remoting/jingle_glue/iq_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "remoting/host/register_support_host_request.h" 5 #include "remoting/host/register_support_host_request.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 XmlElement* support_id = new XmlElement( 122 XmlElement* support_id = new XmlElement(
123 QName(kChromotingXmlNamespace, "support-id")); 123 QName(kChromotingXmlNamespace, "support-id"));
124 support_id->AddText(kSupportId); 124 support_id->AddText(kSupportId);
125 result->AddElement(support_id); 125 result->AddElement(support_id);
126 126
127 XmlElement* support_id_lifetime = new XmlElement( 127 XmlElement* support_id_lifetime = new XmlElement(
128 QName(kChromotingXmlNamespace, "support-id-lifetime")); 128 QName(kChromotingXmlNamespace, "support-id-lifetime"));
129 support_id_lifetime->AddText(kSupportIdLifetime); 129 support_id_lifetime->AddText(kSupportIdLifetime);
130 result->AddElement(support_id_lifetime); 130 result->AddElement(support_id_lifetime);
131 131
132 iq_request->callback()->Run(response.get()); 132 iq_request->callback().Run(response.get());
133 message_loop_.RunAllPending(); 133 message_loop_.RunAllPending();
134 } 134 }
135 135
136 } // namespace remoting 136 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/register_support_host_request.cc ('k') | remoting/jingle_glue/iq_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698