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/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "remoting/jingle_glue/iq_sender.h" | 10 #include "remoting/signaling/iq_sender.h" |
11 #include "remoting/jingle_glue/mock_objects.h" | 11 #include "remoting/signaling/mock_signal_strategy.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
15 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 15 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
16 | 16 |
17 using ::testing::_; | 17 using ::testing::_; |
18 using ::testing::DeleteArg; | 18 using ::testing::DeleteArg; |
19 using ::testing::InvokeWithoutArgs; | 19 using ::testing::InvokeWithoutArgs; |
20 using ::testing::NotNull; | 20 using ::testing::NotNull; |
21 using ::testing::Return; | 21 using ::testing::Return; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 QName("test:namespace", "response-body")); | 132 QName("test:namespace", "response-body")); |
133 response->AddElement(result); | 133 response->AddElement(result); |
134 | 134 |
135 EXPECT_CALL(callback_, OnReply(_, _)) | 135 EXPECT_CALL(callback_, OnReply(_, _)) |
136 .Times(0); | 136 .Times(0); |
137 EXPECT_FALSE(sender_->OnSignalStrategyIncomingStanza(response.get())); | 137 EXPECT_FALSE(sender_->OnSignalStrategyIncomingStanza(response.get())); |
138 base::RunLoop().RunUntilIdle(); | 138 base::RunLoop().RunUntilIdle(); |
139 } | 139 } |
140 | 140 |
141 } // namespace remoting | 141 } // namespace remoting |
OLD | NEW |