OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/jingle_glue/log_to_server.h" | 5 #include "remoting/signaling/log_to_server.h" |
6 | 6 |
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 "remoting/jingle_glue/mock_objects.h" | 9 #include "remoting/signaling/mock_signal_strategy.h" |
10 #include "remoting/jingle_glue/server_log_entry_unittest.h" | 10 #include "remoting/signaling/server_log_entry_unittest.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 | 13 |
14 using buzz::XmlElement; | 14 using buzz::XmlElement; |
15 using buzz::QName; | 15 using buzz::QName; |
16 using testing::_; | 16 using testing::_; |
17 using testing::DeleteArg; | 17 using testing::DeleteArg; |
18 using testing::InSequence; | 18 using testing::InSequence; |
19 using testing::Return; | 19 using testing::Return; |
20 | 20 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 .WillRepeatedly(Return(kClientJid)); | 84 .WillRepeatedly(Return(kClientJid)); |
85 EXPECT_CALL(signal_strategy_, SendStanzaPtr(_)).Times(0); | 85 EXPECT_CALL(signal_strategy_, SendStanzaPtr(_)).Times(0); |
86 | 86 |
87 ServerLogEntry entry; | 87 ServerLogEntry entry; |
88 entry.Set("foo", "bar"); | 88 entry.Set("foo", "bar"); |
89 log_to_server_->Log(entry); | 89 log_to_server_->Log(entry); |
90 run_loop_.RunUntilIdle(); | 90 run_loop_.RunUntilIdle(); |
91 } | 91 } |
92 | 92 |
93 } // namespace remoting | 93 } // namespace remoting |
OLD | NEW |