Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: remoting/host/log_to_server_unittest.cc

Issue 9727005: Log connection type to syslogs and to the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/log_to_server.cc ('k') | remoting/host/remoting_host_messages.mc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/log_to_server_unittest.cc
diff --git a/remoting/host/log_to_server_unittest.cc b/remoting/host/log_to_server_unittest.cc
index 5a26801ec748a7b3635b09b0da0db775240b8817..c4431572a1ca64ac3bb6a05110404fb63ee98e4a 100644
--- a/remoting/host/log_to_server_unittest.cc
+++ b/remoting/host/log_to_server_unittest.cc
@@ -58,12 +58,18 @@ TEST_F(LogToServerTest, SendNow) {
.RetiresOnSaturation();
}
log_to_server_->OnSignalStrategyStateChange(SignalStrategy::CONNECTED);
+ protocol::TransportRoute route;
+ route.type = protocol::TransportRoute::DIRECT;
+ log_to_server_->OnClientRouteChange("client@domain.com/5678", "video", route);
log_to_server_->OnClientAuthenticated("client@domain.com/5678");
log_to_server_->OnSignalStrategyStateChange(SignalStrategy::DISCONNECTED);
message_loop_.Run();
}
TEST_F(LogToServerTest, SendLater) {
+ protocol::TransportRoute route;
+ route.type = protocol::TransportRoute::DIRECT;
+ log_to_server_->OnClientRouteChange("client@domain.com/5678", "video", route);
log_to_server_->OnClientAuthenticated("client@domain.com/5678");
{
InSequence s;
@@ -83,6 +89,9 @@ TEST_F(LogToServerTest, SendLater) {
}
TEST_F(LogToServerTest, SendTwoEntriesLater) {
+ protocol::TransportRoute route;
+ route.type = protocol::TransportRoute::DIRECT;
+ log_to_server_->OnClientRouteChange("client@domain.com/5678", "video", route);
log_to_server_->OnClientAuthenticated("client@domain.com/5678");
log_to_server_->OnClientAuthenticated("client2@domain.com/6789");
{
« no previous file with comments | « remoting/host/log_to_server.cc ('k') | remoting/host/remoting_host_messages.mc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698