| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef REMOTING_TEST_CONNECTION_TIME_OBSERVER_H_ | 5 #ifndef REMOTING_TEST_CONNECTION_TIME_OBSERVER_H_ |
| 6 #define REMOTING_TEST_CONNECTION_TIME_OBSERVER_H_ | 6 #define REMOTING_TEST_CONNECTION_TIME_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "remoting/test/remote_connection_observer.h" | 11 #include "remoting/test/remote_connection_observer.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class TimeDelta; | 14 class TimeDelta; |
| 15 class Timer; | |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace remoting { | 17 namespace remoting { |
| 19 namespace test { | 18 namespace test { |
| 20 | 19 |
| 21 // Observes and saves the times when a chromoting client changes its state. It | 20 // Observes and saves the times when a chromoting client changes its state. It |
| 22 // allows for tests to access latency times between the different states the | 21 // allows for tests to access latency times between the different states the |
| 23 // client transitioned through. | 22 // client transitioned through. |
| 24 class ConnectionTimeObserver | 23 class ConnectionTimeObserver |
| 25 : public RemoteConnectionObserver { | 24 : public RemoteConnectionObserver { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 53 std::map<protocol::ConnectionToHost::State, base::TimeTicks> | 52 std::map<protocol::ConnectionToHost::State, base::TimeTicks> |
| 54 transition_times_map_; | 53 transition_times_map_; |
| 55 | 54 |
| 56 DISALLOW_COPY_AND_ASSIGN(ConnectionTimeObserver); | 55 DISALLOW_COPY_AND_ASSIGN(ConnectionTimeObserver); |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 } // namespace test | 58 } // namespace test |
| 60 } // namespace remoting | 59 } // namespace remoting |
| 61 | 60 |
| 62 #endif // REMOTING_TEST_CONNECTION_TIME_OBSERVER_H_ | 61 #endif // REMOTING_TEST_CONNECTION_TIME_OBSERVER_H_ |
| OLD | NEW |