Chromium Code Reviews| Index: remoting/test/chromoting_test_driver_tests.cc |
| diff --git a/remoting/test/chromoting_test_driver_tests.cc b/remoting/test/chromoting_test_driver_tests.cc |
| index 2216be64ac66dc143984a52585badcc94b3f7d9a..974b0eb1643a353e73baa1a29ab9ad9744e4f248 100644 |
| --- a/remoting/test/chromoting_test_driver_tests.cc |
| +++ b/remoting/test/chromoting_test_driver_tests.cc |
| @@ -15,6 +15,9 @@ const int kMaxTimeToConnectMs = 2000; |
| namespace remoting { |
| namespace test { |
| +// Note: Make sure to restart the host before running this test. Connecting to |
| +// a previously connected host will output time the time to reconnect versus the |
|
anandc
2015/08/13 21:35:31
nit: "output time the time to" -> "output the time
tonychun
2015/08/13 21:39:07
Done.
|
| +// time to connect. |
| TEST_F(ChromotingTestFixture, TestMeasurePinBasedAuthentication) { |
| bool connected = ConnectToHost(kPinBasedMaxConnectionTimeInSeconds); |
| EXPECT_TRUE(connected); |
| @@ -38,6 +41,9 @@ TEST_F(ChromotingTestFixture, TestMeasurePinBasedAuthentication) { |
| connection_time_observer_->DisplayConnectionStats(); |
| } |
| +// Note: Make sure to restart the host before running this test. If the host |
| +// does not restart after a previous connection, then the first connection will |
|
anandc
2015/08/13 21:35:31
"does not restart" -> "is not restarted"
tonychun
2015/08/13 21:39:07
Done.
|
| +// be a reconnect and the second connection will be a second reconnect. |
| TEST_F(ChromotingTestFixture, TestMeasureReconnectPerformance) { |
| bool connected = ConnectToHost(kPinBasedMaxConnectionTimeInSeconds); |
| EXPECT_TRUE(connected); |
| @@ -58,8 +64,6 @@ TEST_F(ChromotingTestFixture, TestMeasureReconnectPerformance) { |
| protocol::ConnectionToHost::State::CONNECTED).InMilliseconds(); |
| EXPECT_LE(authenticated_to_connected_time, kMaxTimeToConnectMs); |
| - connection_time_observer_->DisplayConnectionStats(); |
| - |
| // Begin reconnection to same host. |
| connected = ConnectToHost(kPinBasedMaxConnectionTimeInSeconds); |
| EXPECT_TRUE(connected); |