| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |