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 #include "remoting/test/connection_time_observer.h" | 5 #include "remoting/test/connection_time_observer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
| 9 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
12 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 namespace test { | 17 namespace test { |
17 | 18 |
18 class ConnectionTimeObserverTest : public ::testing::Test { | 19 class ConnectionTimeObserverTest : public ::testing::Test { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 connection_time_observer_->ConnectionStateChanged( | 168 connection_time_observer_->ConnectionStateChanged( |
168 protocol::ConnectionToHost::State::CONNECTED, protocol::ErrorCode::OK); | 169 protocol::ConnectionToHost::State::CONNECTED, protocol::ErrorCode::OK); |
169 | 170 |
170 EXPECT_EQ(connection_time_observer_->GetStateTransitionTime( | 171 EXPECT_EQ(connection_time_observer_->GetStateTransitionTime( |
171 protocol::ConnectionToHost::State::INITIALIZING, | 172 protocol::ConnectionToHost::State::INITIALIZING, |
172 protocol::ConnectionToHost::State::CONNECTED), first_time_delta); | 173 protocol::ConnectionToHost::State::CONNECTED), first_time_delta); |
173 } | 174 } |
174 | 175 |
175 } // namespace test | 176 } // namespace test |
176 } // namespace remoting | 177 } // namespace remoting |
OLD | NEW |