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

Side by Side Diff: remoting/jingle_glue/iq_sender_unittest.cc

Issue 9005034: Refactor SignalStrategy so that it can be reused for multiple connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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/jingle_glue/iq_sender.cc ('k') | remoting/jingle_glue/javascript_signal_strategy.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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "remoting/jingle_glue/iq_sender.h" 8 #include "remoting/jingle_glue/iq_sender.h"
9 #include "remoting/jingle_glue/mock_objects.h" 9 #include "remoting/jingle_glue/mock_objects.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 scoped_ptr<XmlElement> response(new XmlElement(buzz::QN_IQ)); 80 scoped_ptr<XmlElement> response(new XmlElement(buzz::QN_IQ));
81 response->AddAttr(QName("", "type"), "result"); 81 response->AddAttr(QName("", "type"), "result");
82 response->AddAttr(QName("", "id"), kStanzaId); 82 response->AddAttr(QName("", "id"), kStanzaId);
83 83
84 XmlElement* result = new XmlElement( 84 XmlElement* result = new XmlElement(
85 QName("test:namespace", "response-body")); 85 QName("test:namespace", "response-body"));
86 response->AddElement(result); 86 response->AddElement(result);
87 87
88 EXPECT_CALL(callback_, OnReply(response.get())); 88 EXPECT_CALL(callback_, OnReply(response.get()));
89 EXPECT_TRUE(sender_->OnIncomingStanza(response.get())); 89 EXPECT_TRUE(sender_->OnSignalStrategyIncomingStanza(response.get()));
90 } 90 }
91 91
92 } // namespace remoting 92 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/jingle_glue/iq_sender.cc ('k') | remoting/jingle_glue/javascript_signal_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698