Added ConnectionTimeObserver to provide a way to calculate times between the differen...
commit684d1414ae40738e455092831088fbc0391ab11d
authortonychun <tonychun@google.com>
Fri, 31 Jul 2015 00:05:49 +0000 (30 17:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 31 Jul 2015 00:06:23 +0000 (31 00:06 +0000)
tree68e2759900a7db50b44519750dfcc3319a8325db
parentbcc7961519e151bf05e09b19e2eabc36b279e335
Added ConnectionTimeObserver to provide a way to calculate times between the different stages.

The ConnectionTimeObserver saves the state of the client and the time when the client state changes. The delta times can be accessed through GetStateTransitionDelay and a start and end state.

BUG=

Review URL: https://codereview.chromium.org/1238343002

Cr-Commit-Position: refs/heads/master@{#341232}
13 files changed:
remoting/client/plugin/chromoting_instance.cc
remoting/protocol/connection_to_host.h
remoting/protocol/connection_to_host_impl.cc
remoting/protocol/errors.cc [new file with mode: 0644]
remoting/protocol/errors.h
remoting/remoting_srcs.gypi
remoting/remoting_test.gypi
remoting/test/BUILD.gn
remoting/test/chromoting_test_driver.cc
remoting/test/connection_time_observer.cc [new file with mode: 0644]
remoting/test/connection_time_observer.h [new file with mode: 0644]
remoting/test/connection_time_observer_unittest.cc [new file with mode: 0644]
remoting/test/test_chromoting_client.cc