| 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/client/client_status_logger.h" | 5 #include "remoting/client/client_status_logger.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/protocol/performance_tracker.h" | 9 #include "remoting/protocol/performance_tracker.h" |
| 10 #include "remoting/signaling/mock_signal_strategy.h" | 10 #include "remoting/signaling/mock_signal_strategy.h" |
| 11 #include "remoting/signaling/server_log_entry_unittest.h" | 11 #include "remoting/signaling/server_log_entry_unittest.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/webrtc/libjingle/xmllite/xmlelement.h" | 14 #include "third_party/xmllite/xmlelement.h" |
| 15 | 15 |
| 16 using buzz::XmlElement; | 16 using buzz::XmlElement; |
| 17 using buzz::QName; | 17 using buzz::QName; |
| 18 using remoting::protocol::ConnectionToHost; | 18 using remoting::protocol::ConnectionToHost; |
| 19 using testing::_; | 19 using testing::_; |
| 20 using testing::DeleteArg; | 20 using testing::DeleteArg; |
| 21 using testing::InSequence; | 21 using testing::InSequence; |
| 22 using testing::Return; | 22 using testing::Return; |
| 23 | 23 |
| 24 namespace remoting { | 24 namespace remoting { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 protocol::PerformanceTracker perf_tracker; | 148 protocol::PerformanceTracker perf_tracker; |
| 149 client_status_logger_->LogStatistics(&perf_tracker); | 149 client_status_logger_->LogStatistics(&perf_tracker); |
| 150 | 150 |
| 151 client_status_logger_->SetSignalingStateForTest(SignalStrategy::CONNECTED); | 151 client_status_logger_->SetSignalingStateForTest(SignalStrategy::CONNECTED); |
| 152 client_status_logger_->SetSignalingStateForTest(SignalStrategy::DISCONNECTED); | 152 client_status_logger_->SetSignalingStateForTest(SignalStrategy::DISCONNECTED); |
| 153 run_loop.Run(); | 153 run_loop.Run(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 } // namespace remoting | 156 } // namespace remoting |
| OLD | NEW |