OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "remoting/jingle_glue/iq_sender.h" | 9 #include "remoting/jingle_glue/iq_sender.h" |
10 #include "remoting/jingle_glue/mock_objects.h" | 10 #include "remoting/jingle_glue/mock_objects.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 13 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
14 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 14 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
15 | 15 |
16 using ::testing::_; | 16 using ::testing::_; |
17 using ::testing::DeleteArg; | 17 using ::testing::DeleteArg; |
18 using ::testing::InvokeWithoutArgs; | 18 using ::testing::InvokeWithoutArgs; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 QName("test:namespace", "response-body")); | 151 QName("test:namespace", "response-body")); |
152 response->AddElement(result); | 152 response->AddElement(result); |
153 | 153 |
154 EXPECT_TRUE(sender_->OnSignalStrategyIncomingStanza(response.get())); | 154 EXPECT_TRUE(sender_->OnSignalStrategyIncomingStanza(response.get())); |
155 | 155 |
156 EXPECT_CALL(callback_, OnReply(request_.get(), XmlEq(response.get()))); | 156 EXPECT_CALL(callback_, OnReply(request_.get(), XmlEq(response.get()))); |
157 message_loop_.RunUntilIdle(); | 157 message_loop_.RunUntilIdle(); |
158 } | 158 } |
159 | 159 |
160 } // namespace remoting | 160 } // namespace remoting |
OLD | NEW |